.ticker-widget {
    position: relative;
    display: inline-flex;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    gap: 8px;
    transition: background-color 0.3s;
    min-width: 150px;
    opacity: 1;
    transform-origin: center center;
}

.ticker-widget.active {
    /* optional effects can go here */
}

.row-symbol {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 4px;
}

.left-items {
    display: flex;
    align-items: center;
    gap: 4px;
}

.right-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.symbol {
    font-weight: bold;
    font-size: 1.2rem;
}

.bid-ask-label {
    font-size: 0.6rem;
    color: #888;
}

.price {
    font-size: 1rem;
    padding: 2px 4px;
    border-radius: 4px;
}

.arrow {
    font-size: 1.2rem;
    margin-left: 4px;
    color: rgb(148, 255, 232);
}

.flash-green {
    animation: flashGreen 1.0s;
}

.flash-red {
    animation: flashRed 1.0s;
}

@keyframes flashGreen {
    0% {
        background-color: #0f0;
    }
    100% {
        background-color: #000;
    }
}

@keyframes flashRed {
    0% {
        background-color: #f00;
    }
    100% {
        background-color: #000;
    }
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    z-index: 2;
    transition: opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: inherit;
}

.play-icon {
    font-size: 2.5rem;
    color: rgb(0, 170, 255);
    animation: glow 1.5s infinite;
  }

  .mute-icon {
    font-size: 1.0rem;
    color: rgb(0, 170, 255);
    cursor: pointer; /* added for hover state */
  }

  @keyframes glow {
    0% {
      text-shadow: 0 0 5px rgb(0, 68, 255);
    }
    50% {
      text-shadow: 0 0 15px rgb(138, 230, 233);
    }
    100% {
      text-shadow: 0 0 5px rgb(0, 68, 255);
    }
  }

  .hidden {
    opacity: 0;
    pointer-events: none;
  }

  @media only screen and (max-width: 768px ) {
    .ticker-widget {
        transform: scale(0.8);
        min-width: 120px; /* 20% reduction from 150px */
        padding: 6.4px 9.6px; /* reduced padding */
        gap: 6.4px;
    }
    
    .row-symbol .symbol {
        font-size: 0.96rem; /* reduced by 20% */
    }
    
    .bid-ask-label {
        font-size: 0.48rem;
    }
    
    .price {
        font-size: 0.8rem;
        padding: 1.6px 3.2px;
    }
    
    .arrow {
        font-size: 0.96rem;
        margin-left: 3.2px;
    }
}