/* Ana sayfa: kayan döviz ve altın şeridi (header altı) */
.market-ticker {
    display: flex;
    align-items: stretch;
    height: 42px;
    overflow: hidden;
    background: #172b65;
    color: var(--white-color);
    font-size: 12.5px;
    line-height: 1;
}
.market-ticker-pin {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 0 18px;
    background: #12245a;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}
.market-ticker-pin i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange-color);
    box-shadow: 0 0 0 4px rgba(255, 133, 0, 0.2);
}
.market-ticker-pin small {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    font-size: 11px;
}
.market-ticker-track {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.market-ticker-rail {
    display: flex;
    width: max-content;
    height: 100%;
    animation: marketTickerRail var(--ticker-duration, 40s) linear infinite;
}
.market-ticker:hover .market-ticker-rail,
.market-ticker:focus-within .market-ticker-rail {
    animation-play-state: paused;
}
.market-ticker-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--white-color);
    white-space: nowrap;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
.market-ticker-item:hover,
.market-ticker-item:focus {
    color: var(--white-color);
    background: rgba(255, 255, 255, 0.06);
}
.market-ticker-item b {
    font-weight: 800;
    letter-spacing: 0.02em;
}
.market-ticker-item em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11.5px;
}
.market-ticker-change {
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 7px;
}
.market-ticker-change.up { color: #7fe0b9; background: rgba(127, 224, 185, 0.14); }
.market-ticker-change.down { color: #ff9d9d; background: rgba(255, 157, 157, 0.14); }
.market-ticker-change.neutral { color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.1); }
.market-ticker-change.up::before { content: "\25B2\00a0"; font-size: 9px; }
.market-ticker-change.down::before { content: "\25BC\00a0"; font-size: 9px; }
.market-ticker-all {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 0 18px;
    background: var(--light-blue-color);
    color: var(--white-color);
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s;
}
.market-ticker-all:hover,
.market-ticker-all:focus {
    background: var(--orange-color);
    color: var(--white-color);
}
@keyframes marketTickerRail {
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .market-ticker-rail { animation: none; }
    .market-ticker-track { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
@media all and (max-width: 767px) {
    .market-ticker { height: 40px; font-size: 12px; }
    .market-ticker-pin { padding: 0 12px; }
    .market-ticker-pin small { display: none; }
    .market-ticker-item { padding: 0 14px; gap: 7px; }
    .market-ticker-item em { display: none; }
    .market-ticker-all { padding: 0 14px; }
    .market-ticker-all span { display: none; }
}

/* Duraklat düğmesi ve eski veri işareti */
.market-ticker.is-paused .market-ticker-rail { animation-play-state: paused; }
.market-ticker-pause {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 100%;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    cursor: pointer;
}
.market-ticker-pause:hover,
.market-ticker-pause:focus-visible { background: rgba(255, 255, 255, 0.14); color: #fff; outline: none; }
.market-ticker-pause:focus-visible { box-shadow: inset 0 0 0 2px var(--light-blue-color); }
.market-ticker.is-stale .market-ticker-pin i { background: #ffcf70; box-shadow: 0 0 0 4px rgba(255, 207, 112, 0.22); }
.market-ticker.is-stale .market-ticker-pin small { color: #ffcf70; }
@media (prefers-reduced-motion: reduce) { .market-ticker-pause { display: none; } }
