/* BitClac v441: one market DOM, card layout on phones. */

html body[data-page="home"] .crypto-market-mobile-sort-v441 {
  display: none;
}

@media (max-width: 768px) {
  html body[data-page="home"] .crypto-market-section,
  html body[data-page="home"] .crypto-market-section * {
    box-sizing: border-box;
  }

  html body[data-page="home"] .crypto-market-heading,
  html body[data-page="home"] .crypto-market-footer {
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  html body[data-page="home"] .crypto-market-heading h2 {
    overflow-wrap: anywhere;
    font-size: clamp(24px, 8vw, 30px);
  }

  html body[data-page="home"] .crypto-market-update,
  html body[data-page="home"] .crypto-market-refresh {
    width: 100%;
  }

  html body[data-page="home"] .crypto-market-refresh {
    min-height: 44px;
    justify-content: center;
  }

  html body[data-page="home"] .crypto-market-toolbar {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch;
    padding: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    border-radius: 10px;
  }

  html body[data-page="home"] [data-market-search] {
    height: 44px !important;
    min-height: 44px !important;
  }

  html body[data-page="home"] .crypto-market-search,
  html body[data-page="home"] .market-pulse-category-filter-v254,
  html body[data-page="home"] .crypto-market-mobile-sort-v441,
  html body[data-page="home"] .crypto-market-counter {
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-column: auto;
  }

  html body[data-page="home"] .crypto-market-mobile-sort-v441 {
    display: grid;
    gap: 6px;
  }

  html body[data-page="home"] .crypto-market-mobile-sort-v441 > span {
    color: #9aa7b8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  html body[data-page="home"] .crypto-market-mobile-sort-v441 select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 38px 0 13px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 6px;
    color: #f8fafc;
    background: #272c35;
    font-size: 16px;
    font-weight: 800;
  }

  html body[data-page="home"] .crypto-market-counter {
    justify-self: stretch;
    text-align: left;
    overflow-wrap: anywhere;
  }

  html body[data-page="home"] .crypto-market-table-wrap {
    width: 100%;
    min-width: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    scrollbar-width: none;
    touch-action: pan-y;
  }

  html body[data-page="home"] .crypto-market-table {
    width: 100% !important;
    min-width: 0 !important;
    display: block;
    border-collapse: separate;
    table-layout: auto;
  }

  html body[data-page="home"] .crypto-market-table thead {
    display: none;
  }

  html body[data-page="home"] .crypto-market-table tbody {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 12px;
  }

  html body[data-page="home"] .crypto-market-table tbody tr,
  html body[data-page="home"] .crypto-market-table tbody tr:nth-child(even) {
    position: relative;
    width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 138px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, .68fr);
    grid-template-areas:
      "coin rank"
      "price momentum";
    gap: 12px 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
  }

  html body[data-page="home"] .crypto-market-table td {
    width: auto !important;
    min-width: 0 !important;
    display: none;
    padding: 0 !important;
    border: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html body[data-page="home"] .crypto-market-table td.market-rank {
    grid-area: rank;
    align-self: start;
    justify-self: end;
    width: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px 5px 14px !important;
    color: #aeb8c5 !important;
    font-size: 12px !important;
    line-height: 1;
  }

  html body[data-page="home"] .crypto-market-table td.market-rank::before {
    top: 5px !important;
    bottom: 5px !important;
    left: 5px !important;
  }

  html body[data-page="home"] .crypto-market-table td.market-coin-cell {
    grid-area: coin;
    display: block;
  }

  html body[data-page="home"] .market-pulse-coin-v254 {
    width: 100%;
    min-width: 0;
    display: block;
  }

  html body[data-page="home"] .market-pulse-coin-v254 > a:first-child {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  html body[data-page="home"] .market-pulse-coin-v254 > a:first-child > span:last-child,
  html body[data-page="home"] .market-pulse-coin-v254 > a:first-child b,
  html body[data-page="home"] .market-pulse-coin-v254 > a:first-child small {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  html body[data-page="home"] .market-pulse-coin-v254 > a:first-child b {
    font-size: 16px;
    line-height: 1.25;
  }

  html body[data-page="home"] .market-pulse-coin-v254 > a:first-child small {
    font-size: 12px;
  }

  html body[data-page="home"] .market-pulse-coin-v254 .market-buy-button,
  html body[data-page="home"] .crypto-market-table td.market-category-v254,
  html body[data-page="home"] .crypto-market-table td.market-value,
  html body[data-page="home"] .crypto-market-table td.market-chart-cell {
    display: none !important;
  }

  html body[data-page="home"] .crypto-market-table td.market-price,
  html body[data-page="home"] .crypto-market-table td.market-pulse-momentum-cell-v254 {
    align-self: stretch;
    display: grid;
    align-content: center;
    gap: 5px;
    min-height: 56px;
    padding: 9px 10px !important;
    border: 1px solid rgba(148, 163, 184, .15);
    border-radius: 8px;
    background: rgba(12, 17, 24, .36);
  }

  html body[data-page="home"] .crypto-market-table td.market-price {
    grid-area: price;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 900;
  }

  html body[data-page="home"] .crypto-market-table td.market-price::before,
  html body[data-page="home"] .crypto-market-table td.market-pulse-momentum-cell-v254::before {
    color: #8793a2;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
  }

  html body[data-page="home"] .crypto-market-table td.market-price::before {
    content: "Цена";
  }

  html body[data-page="home"] .crypto-market-table td.market-pulse-momentum-cell-v254 {
    grid-area: momentum;
  }

  html body[data-page="home"] .crypto-market-table td.market-pulse-momentum-cell-v254::before {
    content: "Изменение за 24ч";
  }

  html body[data-page="home"] .market-pulse-curve-v255 {
    width: 100%;
    height: auto !important;
    min-height: 20px;
  }

  html body[data-page="home"] .market-pulse-curve-values-v255 {
    position: static;
    display: block;
  }

  html body[data-page="home"] .market-pulse-curve-value-v255 {
    display: none;
  }

  html body[data-page="home"] .market-pulse-curve-value-v255:nth-child(2) {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 5px;
    font-size: 15px;
    white-space: normal;
  }

  html body[data-page="home"] .market-pulse-curve-value-v255:nth-child(2) small {
    font-size: 10px;
  }

  html body[data-page="home"] .market-pulse-curve-v255 svg,
  html body[data-page="home"] .market-pulse-link-v254,
  html body[data-page="home"] .market-pulse-point-v254 {
    display: none;
  }

  html body[data-page="home"] .market-pulse-momentum-v254 {
    display: block;
  }

  html body[data-page="home"] .market-pulse-momentum-v254 .market-pulse-point-v254:nth-of-type(2) {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 5px;
  }

  html body[data-page="home"] .market-pulse-momentum-v254 .market-pulse-point-v254:nth-of-type(2) i {
    display: none;
  }

  html body[data-page="home"] .crypto-market-loading-row {
    min-height: 70px !important;
    display: block !important;
  }

  html body[data-page="home"] .crypto-market-loading-row td {
    width: 100% !important;
    display: block !important;
    padding: 18px !important;
    overflow-wrap: anywhere;
  }

  html body[data-page="home"] .crypto-market-footer {
    padding-top: 14px;
  }

  html body[data-page="home"] .crypto-market-pagination {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    gap: 7px;
  }

  html body[data-page="home"] .crypto-market-pagination button {
    width: 100%;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding-inline: 4px;
  }
}

@media (max-width: 339px) {
  html body[data-page="home"] .crypto-market-table tbody tr,
  html body[data-page="home"] .crypto-market-table tbody tr:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  html body[data-page="home"] .crypto-market-table td.market-price,
  html body[data-page="home"] .crypto-market-table td.market-pulse-momentum-cell-v254 {
    padding-inline: 8px !important;
  }
}
