:root {
  --live-feed-width: 213px;
}

/* ===== LAYOUT ДЛЯ ВЕРТИКАЛЬНОЙ ЛЕНТЫ ===== */

.layout_row {
  display: flex;
  flex: 1 1 auto;
  position: relative;
  margin-left: var(--live-feed-width);
  margin-right: 16px;
  /* width: calc(100% - var(--live-feed-width)); */
  transition: margin-left .3s ease, width .3s ease;
  flex-direction: column;
  min-height: 100vh;
}

.layout_row--footer {
  margin-top: auto;
}

@media(max-width: 1500px) {
  .layout_row {
    margin-left: 0;
    width: 100%;
  }
}

.page_component {
  display: flex;
  flex: 1 1 auto;
  /* flex-direction: column; */
  gap: 48px;
  margin: 16px 16px 8px 16px;
  background: #ffffff04;
  backdrop-filter: blur(10px);
  BORDER-RADIUS: 18PX;
  /* max-width: calc((100% - var(--live-feed-width) * 2) * 1.15); */
  width: calc(100% - 32px);
  padding: 16px;
  box-sizing: border-box;
}

@media(max-width: 1500px) {
  .page_component {
    margin: 16px 16px 8px 16px;
    padding-top: 32px;
    padding-bottom: 60px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media(max-width: 900px) {
  .page_component {
    margin: 16px 16px 8px 16px;
    gap: 32px;
    padding: 24px 16px 40px;
  }
}

.page_container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
}

/* ===== ВЕРТИКАЛЬНАЯ ЛАЙВ ЛЕНТА ДРОПОВ (САЙДБАР) ===== */

/* Контейнер для вертикальной ленты */
.live_container {
  /* bottom: 0; */
  height: calc(100vh - var(--header-height, 92px));
  left: 0;
  padding: 16px;
  position: fixed;
  will-change: height;
  z-index: 2;
  width: var(--live-feed-width);
}

@media(max-width: 1500px) {
  .live_container {
    bottom: auto;
    height: 128px;
    left: 0;
    padding: 0;
    position: relative;
    top: 0;
    will-change: auto;
    width: 100%;
  }
}

@media(max-width: 900px) {
  .live_container {
    height: 82px;
  }
}

/* Компонент ленты */
.live_component {
  background: rgb(255 255 255 / 4%);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  height: 100%;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

@media(max-width: 1500px) {
  .live_component {
    grid-gap: 4px;
    border-radius: 0;
    display: grid;
    gap: 4px;
    grid-auto-flow: column;
    justify-content: left;
    padding: 4px;
  }
}

.live_component:before {
  background: linear-gradient(0deg, #151515, hsla(0, 0%, 8%, 0));
  bottom: 0;
  content: "";
  height: 50px;
  left: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 2;
}

@media(max-width: 1500px) {
  .live_component:before {
    background: linear-gradient(-90deg, #151515, hsla(0, 0%, 8%, 0));
    height: 100%;
    left: auto;
    right: 0;
    width: 50px;
  }
}

/* Верхняя часть с онлайн и табами */
.live_top {
  grid-gap: 4px;
  display: grid;
  gap: 4px;
}

.live_online {
  grid-gap: 6px;
  align-items: center;
  background: #321d25;
  border-radius: 14px 14px 8px 8px;
  display: grid;
  gap: 6px;
  grid-auto-flow: column;
  justify-content: center;
  padding: 12px;
}

@media(max-width: 1500px) {
  .live_online {
    display: none;
  }
}

.live_counter {
  color: #ff0054;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  padding-left: 26px;
  position: relative;
}

@media(max-width: 1800px) {
  .live_counter {
    font-size: 12px;
    padding-left: 24px;
  }
}

.live_counter:before {
  background: rgb(255 0 85 / 10%);
  border-radius: 18px;
  height: 18px;
  left: 0;
  width: 18px;
  bottom: 0;
  content: "";
  margin: auto;
  position: absolute;
  top: 0;
}

.live_counter:after {
  animation: live_blowing 2s infinite;
  background: rgb(255 0 85 / 27%);
  border-radius: 12px;
  height: 12px;
  left: 3px;
  width: 12px;
  bottom: 0;
  content: "";
  margin: auto;
  position: absolute;
  top: 0;
}

.live_counterAmount:before {
  animation: live_blinking 1s infinite;
  background: #ff0055;
  border-radius: 6px;
  bottom: 0;
  content: "";
  height: 6px;
  left: 6px;
  margin: auto;
  position: absolute;
  top: 0;
  width: 6px;
}

.live_title {
  color: rgb(156 156 156);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  max-width: 50px;
}

.live_title-line {
  display: block;
}

@media(max-width: 1800px) {
  .live_title {
    font-size: 9px;
    line-height: 11px;
  }
}

.live_tabs {
  grid-gap: 2px;
  display: grid;
  gap: 2px;
  grid-template-columns: 1fr 1fr;
}

@media(max-width: 1500px) {
  .live_tabs {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    width: 40px;
  }
}

@media(max-width: 900px) {
  .live_tabs {
    width: 36px;
  }
}

.live_tab {
  align-items: center;
  background: #321d25;
  display: grid;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: background-color .3s;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media(max-width: 1500px) {
  .live_tab {
    height: 100%;
  }
}

.live_tab:hover {
  background: #510d28;
}

.live_tab:hover path {
  fill: #ff0055;
}

.live_tab.live_active {
  pointer-events: none;
}

.live_tab.live_active:before {
  opacity: 1;
}

.live_tab.live_active path {
  fill: #ffffff;
}

.live_tab:first-child {
  border-radius: 8px 4px 4px 14px;
}

@media(max-width: 1500px) {
  .live_tab:first-child {
    border-radius: 10px 10px 2px 2px;
  }
}

.live_tab:last-child {
  border-radius: 4px 8px 14px 4px;
}

@media(max-width: 1500px) {
  .live_tab:last-child {
    border-radius: 2px 2px 10px 10px;
  }
}

.live_tab:before {
  background: linear-gradient(59deg, #ff0055 13.03%, #ba134e 99.6%);
  content: "";
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity .3s;
  width: 100%;
}

.live_tabIcon {
  height: 24px;
  position: relative;
  width: 24px;
  z-index: 2;
}

@media(max-width: 900px) {
  .live_tabIcon {
    height: 18px;
    width: 18px;
  }
}

.live_tabIcon path {
  fill: #8d3b4b;
  transition: fill .3s;
}

/* Список дропов */
.live_list {
  grid-gap: 8px;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  overflow: hidden;
  width: 154px;
}

@media(max-width: 1500px) {
  .live_list {
    gap: 4px;
    grid-auto-flow: column;
    justify-content: left;
    margin-top: 0;
    width: 100%;
    max-height: none;
    overflow-y: visible;
    overflow-x: auto;
  }
}

/* Элемент дропа */
.live_item {
  border-radius: 18px;
  flex-shrink: 0;
  height: 148px;
  overflow: hidden;
  position: relative;
  width: 154px;
  will-change: height, width, transform;
}

@media(max-width: 1500px) {
  .live_item {
    border-radius: 12px;
    height: 120px;
    width: 130px;
  }
}

@media(max-width: 900px) {
  .live_item {
    border-radius: 10px;
    height: 74px;
    width: 77px;
  }
}

/* ===== КАРТОЧКА ДРОПА (СТИЛЬ ИЗ РЕФЕРЕНСА) ===== */

.item_component {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #171819, #2b2d33);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-content: center;
  justify-items: center;
  align-content: baseline;
  padding-top: 6px;
  text-decoration: none;
  color: inherit;
}

.item_component:hover:after {
  opacity: 1;
}

.item_component:after {
  border: none;
  border-radius: 18px;
  content: "";
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity .3s ease;
  width: 100%;
  pointer-events: none;
}

/* Редкости с градиентным фоном */
.item_component.item_knife,
.item_component.item_rare {
  background: linear-gradient(180deg, #1e1b13, #42391c);
}

.item_component.item_consumer {
  background: linear-gradient(180deg, #171819, #2b2d33);
}

.item_component.item_industrial {
  background: linear-gradient(180deg, #14171f, #1f2b4c);
}

.item_component.item_milspec,
.item_component.item_mil-spec {
 background: linear-gradient(180deg, #14171f, #091f5c);
}

.item_component.item_restricted {
  background: linear-gradient(180deg, #17131e, #331958);
}

.item_component.item_classified {
  background: linear-gradient(180deg, #1e131a, #5e1349);
}

.item_component.item_covert {
  background: linear-gradient(180deg, #1e1513, #581515);
}

/* Обложка при наведении */
.item_cover {
  background: linear-gradient(180deg, #282a2d, #464950);
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 0.3s;
  width: 100%;
  z-index: 4;
  border-radius: 18px;
}

.item_component.item_knife .item_cover,
.item_component.item_rare .item_cover {
  background: linear-gradient(180deg, #28251d, #42391c);
}

.item_component.item_restricted .item_cover {
  background: linear-gradient(180deg, #2d2639, #381965);
}

.item_component.item_covert .item_cover {
  background: linear-gradient(180deg, #35221d, #581515);
}

.item_component.item_milspec .item_cover,
.item_component.item_mil-spec .item_cover {
  background: linear-gradient(180deg, #1a2a2f, #0c174d);
}

.item_component.item_classified .item_cover {
  background: linear-gradient(180deg, #361f2e, #5e1349);
}

.item_component.item_industrial .item_cover {
  background: linear-gradient(180deg, #242a3b, #1f2b4c);
}

.item_component.item_consumer .item_cover {
  background: linear-gradient(180deg, #282a2d, #2b2d33);
}

.item_component:hover .item_cover {
  opacity: 1;
}

/* Кейс */
.item_case {
  height: 100px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 2px;
  transition: transform 0.3s;
  width: 100px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item_case img {
  max-width: 100%;
  height: auto;
}

.item_component:hover .item_case {
  transform: translateY(10px);
}

/* Пользователь */
.item_user {
  grid-gap: 6px;
  align-items: center;
  bottom: 4px;
  display: grid;
  gap: 6px;
  grid-auto-flow: column;
  justify-content: center;
  left: 0;
  overflow: hidden;
  padding: 0 12px;
  position: absolute;
  transition: transform 0.3s;
  width: 100%;
  z-index: 5;
}

.item_user img {
  border-radius: 24px;
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.item_username {
  color: #fff;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item_component:hover .item_user {
  transform: translateY(-10px);
}

/* Контейнер предмета */
.item_item {
  align-items: center;
  background-image: url(../assets/img/items/icon-restricted.png);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 80px;
  display: grid;
  height: 90px;
  justify-content: center;
  position: relative;
  transition: transform 0.3s;
  width: 120px;
  z-index: 3;
  margin-left: auto;
  margin-right: auto;
}

/* Фоновые иконки по редкости */
.item_component.item_restricted .item_item {
  background-image: url(../assets/img/items/icon-restricted.png);
}

.item_component.item_classified .item_item {
  background-image: url(../assets/img/items/icon-classified.png);
}

.item_component.item_covert .item_item {
  background-image: url(../assets/img/items/icon-covert.png);
}

.item_component.item_knife .item_item,
.item_component.item_rare .item_item {
  background-image: url(../assets/img/items/icon-knife.png);
}

.item_component.item_milspec .item_item,
.item_component.item_mil-spec .item_item {
  background-image: url(../assets/img/items/icon-mil-spec.png);
}

.item_component.item_industrial .item_item {
  background-image: url(../assets/img/items/icon-industrial.png);
}

.item_component.item_consumer .item_item {
  background-image: url(../assets/img/items/icon-consumer.png), url(../assets/img/items/icon-restricted.png);
}

.item_component:hover .item_item {
  transform: translateY(-10px);
}

.item_picture {
  height: 88px;
  width: 118px;
  object-fit: contain;
  z-index: 2;
}

/* Нижняя часть с текстом */
.item_bottom {
  max-width: 100%;
  overflow: hidden;
  padding: 0 12px 12px 12px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  transition: transform 0.3s;
  z-index: 3;
}

.item_component:hover .item_bottom {
  transform: translateY(10px);
}

.item_price {
  color: #ff0054;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  margin: 0 0 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.item_price img {
  flex-shrink: 0;
  vertical-align: middle;
  width: 16px;
  height: 16px;
}

.item_title {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

/* Анимации */
@keyframes live_blowing {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

@keyframes live_blinking {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Анимация появления нового элемента сверху (для вертикальной ленты) */
.drop-card-enter-vertical {
  animation: slideInFromTop 0.5s ease;
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-156px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Адаптивность для маленьких экранов */
@media(max-width: 900px) {
  .item_cover {
    display: none;
  }
  
  .item_bottom {
    padding: 4px 6px;
  }
  
  .item_price {
    font-size: 10px;
  }
  
  .item_title {
    font-size: 8px;
  }
}

/* Главный контент главной страницы */
.stats-section {
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

@media(max-width: 1800px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
