/* ===== ТИКЕР ===== */
.ticker {
    margin-top: 10px;
    position: relative;
    background: rgba(178, 34, 52, 0.2);
    overflow: hidden;
    color: #fff;
    display: flex;
    padding: 3px 0;
}

/* ===== ЛЕВАЯ ЧАСТЬ ===== */
.ticker-left {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin-left: 8px;
    padding: 0;
}

.ticker-left-inner {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    min-height: 35px;
}

.ticker-left-inner::before {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: 3px;
    right: 3px;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.15) 25%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0.15) 75%,
        rgba(255,255,255,0) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.ticker-left-inner > * {
    position: relative;
    z-index: 1;
}

.ticker-left .top {
    font-size: 10px;
    font-weight: 400;
}

.ticker-left .bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.icon-yuan {
    display: inline-block;
    width: 10px;
    height: 14px;
    background: url("../icons/yuan.svg") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

.cny-text {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
}

.icon-arrow {
    display: inline-block;
    width: 9px;
    height: 11px;
    background: url("../icons/arrow.svg") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

/* ===== ПРАВАЯ ЧАСТЬ ===== */
.ticker-right {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
}

.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    animation: ticker-scroll 25s linear infinite;
}

.ticker-track > .ticker-content {
    display: flex;
}

.ticker-box {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 220px;
    padding: 0 22px 0 0;
    border-right: 1px solid #fff;
    text-transform: uppercase;
}

.box-top {
    font-size: 10px;
    font-weight: 400;
    margin-bottom: 5px;
    text-align: center;
}

.box-bottom {
    font-size: 12px;
    white-space: nowrap;
    color: #fff;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.tg-icon {
    display: inline-block;
    width: 12px;
    height: 11px;
    background: url("/static/icons/telegram.svg") no-repeat center;
    background-size: contain;
    margin-left: 20px;
    margin-right: 8px;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== ГРАДИЕНТ ЦЕНЫ ===== */
.price-gradient {
  background: linear-gradient(14deg, rgba(178, 34, 52, 1) 0%, rgba(213, 103, 28, 1) 10%, rgba(255, 185, 0, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding-left: 5px;
}

.ticker-box a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.ticker-box a:hover {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 860px) {
  .ticker-wrapper {
    display: none !important;
  }
}