/* ==============================================================================
   RHYTHIA PPS - MINIMALIST OSU-PPS THEME CSS
   ============================================================================== */

:root {
  --bg-page: #151515;
  --bg-row: #1f1f1f;
  --bg-row-hover: #262626;
  --bg-input: #202020;
  --border-input: #333333;
  
  --text-main: #e0e0e0;
  --text-white: #ffffff;
  --text-muted: #888888;
  --text-sub: #666666;

  /* osu-pps Colors */
  --pill-blue-bg: #21354a;
  --pill-blue-text: #6cb0f2;
  --pill-green-bg: #233b28;
  --pill-green-text: #72c77d;
  --pill-gold-bg: #4a341b;
  --pill-gold-text: #e6a040;
  --pill-purple-text: #6e86f8;

  --btn-reset-border: #6b2626;
  --btn-reset-text: #e06c75;
  --btn-reset-bg: rgba(107, 38, 38, 0.2);

  --btn-less-border: #285433;
  --btn-less-text: #6bb37b;
  --btn-less-bg: rgba(40, 84, 51, 0.25);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  padding: 16px 36px 60px 36px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ==============================================================================
   Top Navigation Bar
   ============================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 12px;
}

.nav-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-row-main {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-dot {
  color: var(--text-sub);
}

.nav-row-sub {
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-sub-item.active {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-sub-caption {
  font-size: 11px;
  color: #555;
  margin-left: 10px;
  font-weight: 400;
}

.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.nav-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.nav-icon-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.nav-icon-link:hover {
  color: var(--text-white);
}

.nav-game-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-game-link i {
  color: #a78bfa;
  font-size: 12px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.nav-game-link:hover {
  color: var(--text-white);
}

.nav-game-link:hover i {
  color: #c4b5fd;
  transform: translateY(-1px);
}

.nav-tipply {
  cursor: pointer;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-tipply i {
  color: #ff5b69;
  font-size: 11px;
  transition: transform 0.15s ease;
}

.nav-tipply:hover {
  color: var(--text-white);
}

.nav-tipply:hover i {
  transform: scale(1.2);
}

.nav-author-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-author-link i {
  color: #6cb0f2;
  font-size: 11px;
}

.nav-author-link:hover {
  color: var(--text-white);
}

.nav-author-link:hover i {
  color: #92c5ff;
}

.site-footer {
  margin-top: 40px;
  padding: 24px 0 32px;
  border-top: 1px solid #222;
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-dot {
  color: #444;
}

.footer-author-link,
.footer-tipply-link,
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-author-link:hover {
  color: #6cb0f2;
}

.footer-tipply-link i {
  color: #ff5b69;
}

.footer-tipply-link:hover {
  color: var(--text-white);
}

.footer-link:hover {
  color: var(--text-white);
}

/* ==============================================================================
   Toolbar & Filter Bar
   ============================================================================== */
.toolbar-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.toolbar-row-top {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-reset {
  background: var(--btn-reset-bg);
  border: 1px solid var(--btn-reset-border);
  color: var(--btn-reset-text);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
}

.btn-reset:hover {
  background: rgba(107, 38, 38, 0.4);
}

.btn-toggle-filters {
  background: var(--btn-less-bg);
  border: 1px solid var(--btn-less-border);
  color: var(--btn-less-text);
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
}

.btn-toggle-filters:hover {
  background: rgba(40, 84, 51, 0.4);
}

.input-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
  max-width: 340px;
}

.input-search-wrapper input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  color: var(--text-white);
  border-radius: 4px;
  padding: 5px 28px 5px 10px;
  font-size: 13px;
  height: 28px;
  outline: none;
}

.input-search-wrapper input:focus {
  border-color: #555;
}

.btn-clear-search {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  font-size: 11px;
  display: none;
}

.filter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.filter-box-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  text-transform: lowercase;
}

.filter-box-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-box-inputs input {
  width: 54px;
  height: 28px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  color: var(--text-white);
  border-radius: 4px;
  padding: 4px 4px;
  font-size: 12px;
  text-align: center;
  outline: none;
  box-sizing: border-box;
  -moz-appearance: textfield;
  appearance: textfield;
}

.filter-box-inputs input::-webkit-outer-spin-button,
.filter-box-inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filter-box-inputs input:focus {
  border-color: #555;
}

/* Speed Select Dropdown (Rhythia official speeds) */
.speed-select-input {
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 4px 18px 4px 8px;
  height: 28px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  min-width: 66px;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 10px;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.speed-select-input.is-default {
  color: #777777;
  font-weight: 400;
}

.speed-select-input:hover {
  border-color: #444;
}

.speed-select-input:focus {
  border-color: #555;
}

.speed-select-input.active {
  background: #242424;
  border-color: #555;
  color: var(--text-white);
  font-weight: 500;
}

.speed-select-input option {
  background: #181818;
  color: #cccccc;
  padding: 6px;
  font-weight: normal;
}

/* Toolbar Row 2 */
.toolbar-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sort-select-wrapper select {
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  color: var(--text-main);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  height: 30px;
}

.sort-select-wrapper select:focus {
  border-color: #555;
}

.toolbar-stats-text {
  font-size: 12px;
  color: var(--text-muted);
}

.beta-notice-banner {
  background: rgba(224, 160, 64, 0.08);
  border: 1px solid rgba(224, 160, 64, 0.22);
  color: #cca46a;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.beta-notice-banner i {
  color: #e6a040;
  font-size: 12px;
  flex-shrink: 0;
}

.beta-notice-banner strong {
  color: #e6a040;
  font-weight: 700;
}

/* ==============================================================================
   List Container & Rows (The exact osu-pps row layout)
   ============================================================================== */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-row {
  background: var(--bg-row);
  border-radius: 6px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.12s ease;
  cursor: pointer;
  user-select: none;
}

.item-row:hover {
  background: var(--bg-row-hover);
}

/* Left part: thumbnail + title + subtitle */
.row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.row-thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  background: #252525;
  flex-shrink: 0;
}

.row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.row-title {
  font-size: 14px;
  font-weight: 600;
  color: #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.row-title:hover {
  color: var(--pill-gold-text);
}

.row-mapper-tag {
  font-size: 11px;
  font-weight: 500;
  color: #888;
  margin-left: 6px;
  letter-spacing: 0.2px;
}

.multi-mapper-pill {
  background: rgba(255, 170, 0, 0.1);
  color: #ffb833;
  border: 1px solid rgba(255, 170, 0, 0.25);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  margin-left: 6px;
}

/* Multi-creator Mapset Category Divider */
.mapset-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #181818;
  border-left: 3px solid #ffaa00;
  border-top: 1px solid #282828;
  border-bottom: 1px solid #282828;
  border-right: 1px solid #222;
  padding: 8px 14px;
  margin-top: 14px;
  margin-bottom: 4px;
  border-radius: 4px;
}

.mapset-category-header:first-child {
  margin-top: 0;
}

.mapset-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #ddd;
}

.mapset-header-left i {
  color: #ffaa00;
  font-size: 13px;
}

.mapset-creator-name {
  color: #fff;
  font-weight: 600;
}

.mapset-meta-tag {
  background: #242424;
  color: #aaa;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid #333;
}

.mapset-external-btn {
  font-size: 11px;
  color: #888;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.mapset-external-btn:hover {
  color: #ffaa00;
}

.row-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-sub span {
  color: #aaa;
}

/* Right columns: RP, Speed, Length, Notes, Diff, Farm Count */
.row-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* RP Number */
.col-rp {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  min-width: 85px;
  text-align: right;
  letter-spacing: -0.5px;
}

.col-rp sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Speed Badge (like DT / HR) */
.col-speed {
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  min-width: 44px;
  text-align: center;
}

.speed-active {
  background: var(--pill-gold-bg);
  color: var(--pill-gold-text);
}

.speed-nomod {
  background: #282828;
  color: #777777;
}

/* Length Pill */
.col-length {
  background: var(--pill-blue-bg);
  color: var(--pill-blue-text);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  min-width: 58px;
  text-align: center;
}

/* Notes Pill */
.col-notes {
  background: var(--pill-green-bg);
  color: var(--pill-green-text);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  min-width: 56px;
  text-align: center;
}

/* Difficulty Pill */
.col-diff {
  color: var(--pill-purple-text);
  font-size: 14px;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}

/* Farm Count (Farmland / player occurrences) */
.col-farm-count {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  min-width: 50px;
  text-align: right;
}

/* ==============================================================================
   Load More & States
   ============================================================================== */
.load-more-container {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.btn-load-more {
  background: #222;
  border: 1px solid #333;
  color: var(--text-main);
  padding: 8px 24px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-load-more:hover {
  background: #2a2a2a;
  color: var(--text-white);
  border-color: #555;
}

.loading-box, .empty-box {
  background: var(--bg-row);
  border-radius: 6px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid #333;
  border-top-color: var(--pill-gold-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  margin-top: 4px;
}

.loading-subtitle {
  font-size: 12px;
  color: var(--text-sub);
  max-width: 400px;
  line-height: 1.5;
}

.retry-btn {
  background: #252525;
  border: 1px solid #3a3a3a;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  margin-top: 6px;
}

.retry-btn:hover {
  background: #2c2c2c;
  color: var(--text-white);
  border-color: #555;
}

/* ==============================================================================
   Modal Overlay (Scores details)
   ============================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-window {
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 6px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #282828;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.modal-title-row h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-speed {
  background: var(--pill-gold-bg);
  color: var(--pill-gold-text);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: #888;
  font-size: 16px;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-meta-row {
  padding: 10px 20px;
  background: #181818;
  font-size: 12px;
  color: #888;
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #282828;
}

.modal-meta-row span {
  color: #ccc;
}

.modal-table-scroll {
  overflow-y: auto;
  max-height: 380px;
}

.modal-scores-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.modal-scores-table th {
  padding: 10px 16px;
  background: #1f1f1f;
  color: #888;
  font-weight: 600;
  border-bottom: 1px solid #282828;
  position: sticky;
  top: 0;
}

.modal-scores-table td {
  padding: 9px 16px;
  border-bottom: 1px solid #242424;
  color: #ddd;
}

.modal-scores-table a {
  color: #72b0ed;
  text-decoration: none;
}

.modal-scores-table a:hover {
  text-decoration: underline;
}

.player-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.player-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  vertical-align: middle;
}

.player-flag {
  font-size: 10px;
  color: #888;
  background: #252525;
  padding: 1px 4px;
  border-radius: 2px;
  font-family: var(--font-mono);
}

.player-clan {
  font-size: 11px;
  color: #888;
  margin-left: 2px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #282828;
  display: flex;
  justify-content: flex-end;
}

.btn-external-link {
  color: #e6a040;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-external-link:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* ==============================================================================
   Responsive
   ============================================================================== */
/* ==============================================================================
   Responsive
   ============================================================================== */
@media (max-width: 960px) {
  body {
    padding: 14px 18px 50px 18px;
  }
  .row-right {
    gap: 10px;
  }
  .col-notes {
    display: none;
  }
}

@media (max-width: 768px) {
  .col-length {
    display: none;
  }
  .col-diff {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    padding: 10px 10px 40px 10px;
  }

  /* Top Navigation Bar: Stack cleanly into 2 neat rows */
  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1f1f1f;
  }

  .nav-left {
    width: 100%;
    gap: 3px;
  }

  .nav-row-main {
    font-size: 15px;
    flex-wrap: wrap;
    gap: 6px;
    row-gap: 3px;
  }

  .nav-row-main .nav-link {
    white-space: nowrap;
  }

  .nav-row-sub {
    font-size: 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-sub-caption {
    margin-left: 2px;
    font-size: 10.5px;
  }

  .nav-right {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 5px;
    border-top: 1px solid #181818;
  }

  .nav-meta {
    font-size: 11px;
    white-space: nowrap;
  }

  .nav-actions {
    gap: 10px;
    font-size: 12px;
  }

  .nav-author-link,
  .nav-game-link,
  .nav-tipply {
    font-size: 12px;
    white-space: nowrap;
  }

  /* Toolbar Filter Rows */
  .toolbar-container {
    gap: 10px;
    margin-bottom: 14px;
  }

  .toolbar-row-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-end;
  }

  .btn-reset, .btn-toggle-filters {
    padding: 4px 8px;
    font-size: 11.5px;
    height: 28px;
    flex-shrink: 0;
  }

  .input-search-wrapper {
    min-width: 130px;
    flex: 1 1 auto;
    max-width: none;
  }

  .input-search-wrapper input {
    height: 28px;
    font-size: 12px;
  }

  .filter-box {
    flex: 0 0 auto;
  }

  .filter-box-label {
    font-size: 10.5px;
  }

  .filter-box-inputs input {
    width: 45px;
    height: 27px;
    font-size: 11px;
    padding: 2px;
  }

  .speed-select-input {
    min-width: 58px;
    height: 27px;
    font-size: 11px;
    padding: 2px 16px 2px 6px;
  }

  .toolbar-row-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .sort-select-wrapper select {
    width: 100%;
    font-size: 12.5px;
    height: 30px;
  }

  .toolbar-stats-text {
    font-size: 11px;
    text-align: right;
  }

  /* Map Item Row: compact and optimized for readability */
  .item-row {
    padding: 7px 8px;
    gap: 8px;
  }

  .row-left {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .row-thumb {
    width: 42px;
    height: 42px;
  }

  .row-title {
    font-size: 13px;
    font-weight: 600;
  }

  .row-mapper-tag {
    font-size: 10.5px;
  }

  .multi-mapper-pill {
    font-size: 9.5px;
    padding: 1px 4px;
  }

  .row-sub {
    font-size: 10.5px;
    margin-top: 1px;
  }

  .sub-mapper {
    display: none;
  }

  /* Compact 2-line Grid for right stats */
  .row-right {
    display: grid;
    grid-template-areas:
      "rp rp"
      "speed farm";
    align-items: center;
    justify-items: end;
    gap: 2px 5px;
    min-width: 66px;
    flex-shrink: 0;
  }

  .col-rp {
    grid-area: rp;
    font-size: 16px;
    font-weight: 700;
    min-width: 0;
    text-align: right;
    line-height: 1.1;
  }

  .col-rp sub {
    font-size: 10px;
    margin-left: 1px;
  }

  .col-speed {
    grid-area: speed;
    padding: 2px 5px;
    font-size: 10px;
    min-width: 0;
    line-height: 1.2;
    border-radius: 3px;
  }

  .col-farm-count {
    grid-area: farm;
    font-size: 11px;
    font-weight: 600;
    min-width: 0;
    color: #888;
    line-height: 1.2;
  }

  /* Multi-creator category banner */
  .mapset-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 6px 10px;
  }

  .mapset-header-left {
    flex-wrap: wrap;
    gap: 5px;
    font-size: 12px;
  }

  .mapset-meta-tag {
    font-size: 10px;
    padding: 1px 5px;
  }

  .mapset-external-btn {
    align-self: flex-end;
    font-size: 10.5px;
  }

  /* Modal on mobile */
  .modal-backdrop {
    padding: 8px;
  }

  .modal-window {
    max-height: 92vh;
  }

  .modal-header {
    padding: 10px 12px;
  }

  .modal-title-row h3 {
    font-size: 14px;
  }

  .modal-meta-row {
    padding: 8px 12px;
    font-size: 11px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .modal-scores-table th,
  .modal-scores-table td {
    padding: 6px 8px;
    font-size: 11px;
  }

  .modal-footer {
    padding: 8px 12px;
  }

  .footer-content {
    font-size: 11px;
    gap: 6px;
  }
}

@media (max-width: 380px) {
  body {
    padding: 8px 6px 30px 6px;
  }

  .row-thumb {
    width: 38px;
    height: 38px;
  }

  .row-title {
    font-size: 12.5px;
  }

  .filter-box-inputs input {
    width: 40px;
  }
}

