.font-radiance { 
    font-family: 'Radiance', 'Noto Sans', sans-serif; 
}

.font-reaver { 
    font-family: 'Reaver', 'Noto Sans', sans-serif; 
}

.live-circle {
    animation: blink 2s linear infinite;
    border-radius: 50%;
    display: inline-block;
    height: 5px;
    margin-left: 2px;
    width: 5px;
    background-color: #ff4757;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 1; }
} 

.ml-card-main {
    margin-left: 0.01em !important;
}

.fw-600 {
    font-weight: 600;
}

.lh-13 {
    line-height: 1.3 !important;
}

.lh-11 {
    line-height: 1.1 !important;
}

.fs-130 {
    font-size: 1.30rem !important;
}

.hero-img {
    width: 48px;
    height: 27px;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 4px;
    object-fit: cover;
}

.bordered-icon-meta-escape {
    border-color: var(bs-bordered-color-meta-escape) !important;
}

.position-icon-meta-escape {
    width: 16px; 
    height: 16px; 
    vertical-align: text-bottom; 
    margin-right: 4px;
}

.icon-meta-escape {
    width: 16px;
    height: 16px;
}

.index-top-heroes-icon
 {
    width: 22px;
    height: 22px;
    vertical-align: text-bottom;
    margin-right: 2px;
}

.index-hero-builds-icon {
    width: 40px; 
    height: 40px; 
    object-fit: cover;    
}

/* Стили для контейнера результатов поиска */
.search-results-container {
  position: relative;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bs-bg-bundles-stats);
  border: 1px solid;
  border-color: var(--pick-slot-bg);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  z-index: 1050;
  max-height: 70vh;
  overflow-y: auto;
  margin-top: 0.5rem;
  display: none;
}

.search-results.active {
  display: block;
}

.search-type-group {
  border-bottom: 1px solid;
  border-color: var(--pick-slot-bg);
}

.search-type-header {
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--bs-heroes-font-color);
  background-color: var(--pick-slot-bg);
  position: sticky;
  top: 0;
  z-index: 1;
}

.search-items-list {
  padding: 0.15rem 0;
  background-color: var(--bs-bg-bundles-stats);
}

.search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.7rem;
  color: var(--bs-heroes-font-color);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.search-item:hover {
  background-color: var(--pick-slot-bg);
}

.search-item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-ticker {
  color: #6c757d;
  font-size: 0.85em;
  margin-left: 0.25rem;
}

.search-item-price {
  font-weight: 500;
  white-space: nowrap;
  margin-left: 1rem;
}

.search-item-change {
  font-size: 0.85em;
  margin-left: 0.25rem;
}

.search-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--bs-heroes-font-color);
}

.search-hero-icon {
    width: 24px;
    height: 24px;
    margin-right: 1px;
}

.width-search-line {
    width: 62rem;
}

.fc-main-h2 {
    color: var(--font-color-main-h2) !important;;
}

.fc-main-h2:hover {
    color: var(--font-color-main-h2-hover) !important;;
}

.p-block-zero {
    padding-block: 0.76rem !important;    
}

.fs-main-vs {
    font-size: 0.62rem !important;
}

.menu .app-brand.demo {
  height: 64px;
}

/* Стили для мобильной версии */
#mobileSearchModal .search-results {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin-top: 0.5rem;
  max-height: 50vh;
}

#mobileSearchModal .search-type-header {
  position: static;
}

/* Стили для мобильного поиска */
#mobileSearchModal .modal-dialog {
  max-width: 95%;
}

#mobileSearchModal .modal-content {
  border-radius: 12px;
}

#mobileSearchModal .form-control {
  height: 50px;
  font-size: 16px;
  border: 1px solid #dee2e6;
  border-right: none;
}

#mobileSearchModal .btn {
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  border-left: none;
}

/* Анимация для плавного появления */
#mobileSearchModal.modal.fade .modal-dialog {
  transform: translateY(20px);
  transition: transform 0.3s ease-out;
}

#mobileSearchModal.modal.show .modal-dialog {
  transform: translateY(0);
}

/* Мобильные (0-767px) */
@media only screen and (max-width: 767px) {
    html body .layout-wrapper .layout-container .layout-page .content-wrapper .container-fluid.flex-grow-1.container-p-y.pt-main-h1 {
        padding-top: 0.7rem !important;    
    }
    .fs-team-series {
        font-size: 0.9375rem !important;
    }
    .fs-main-h2 {
        font-size: 1rem !important;
    }
    .fs-main-vs {
        font-size: 0.62rem;
    }    
    .hero-icon-meta-escape {
        width: 84px; 
        height: 47px; 
        object-fit: cover;    
    }  
    .item-icon-meta-escape {
        width: 43px; 
        height: 31px; 
        object-fit: cover;    
    }
    .fs-bundles-change {
        font-size: 0.7rem !important;
    }
    .fs-bundles-hero-name {
        font-size: 0.76rem !important;
    }
    .fs-drafter-recommend {
        font-size: 0.82rem !important;
    }    
}

/* Планшеты (768-1199px) */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
    html body .layout-wrapper .layout-container .layout-page .content-wrapper .container-fluid.flex-grow-1.container-p-y.pt-main-h1 {
        padding-top: 2.5rem !important;
    }
    .hero-icon-meta-escape {
        width: 84px; 
        height: 47px; 
        object-fit: cover;    
    }
    .item-icon-meta-escape {
        width: 48px; 
        height: 35px; 
        object-fit: cover;    
    }   
    .fs-drafter-recommend {
        font-size: 0.82rem !important;
    }  
    .fs-main-h2 {
        font-size: 1rem !important;
    }    
}

/* Десктоп (1200px+) */
@media only screen and (min-width: 1200px) {
    html body .layout-wrapper .layout-container .layout-page .content-wrapper .container-fluid.flex-grow-1.container-p-y.pt-main-h1 {
        padding-top: 4.3rem !important;
    }
    .fs-main-h2 {
        font-size: 1.125rem !important;
    }    
    .fs-team-series {
        font-size: 1.125rem !important;
    }  
    .hero-icon-meta-escape {
        width: 84px; 
        height: 47px; 
        object-fit: cover;    
    } 
    .item-icon-meta-escape {
        width: 48px; 
        height: 35px; 
        object-fit: cover;    
    }
    .fs-bundles-change {
        font-size: 0.7rem !important;
    }
    .fs-bundles-hero-name {
        font-size: 0.9375rem !important;
    } 
    .fs-drafter-recommend {
        font-size: 1.125rem !important;
    }
    .search-results {
        width: 50%; 
        min-width: 400px;
        max-width: 600px;
        left: auto; 
        right: 0;
    }    
}