/*
 * GoldenOldies News Ticker - Front-end CSS
 */
.gont-ticker-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: var(--gont-height, 42px);
    background-color: var(--gont-bg, #1a1a2e);
    color: var(--gont-text, #ffffff);
    font-family: var(--gont-font-family, inherit);
    font-size: var(--gont-font-size, 14px);
    font-weight: var(--gont-font-weight, normal);
    border-radius: var(--gont-radius, 4px);
    box-shadow: var(--gont-shadow, none);
    position: relative;
    box-sizing: border-box;
}

.gont-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation-name: gont-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: var(--gont-duration, 50s);
    animation-direction: var(--gont-direction, normal);
    flex-shrink: 0;
}

.gont-ticker-clone {
    animation-delay: calc(var(--gont-duration, 50s) * -1);
}

.gont-pause-hover:hover .gont-ticker-track,
.gont-ticker-wrap.gont-paused .gont-ticker-track {
    animation-play-state: paused;
}

@keyframes gont-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.gont-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--gont-pad-v, 8px) var(--gont-pad-h, 16px);
    flex-shrink: 0;
}

.gont-date {
    opacity: 0.7;
    font-size: 0.85em;
    flex-shrink: 0;
}

a.gont-title {
    color: var(--gont-text, #ffffff);
    text-decoration: none;
    transition: color 0.2s;
}

a.gont-title:hover,
a.gont-title:focus {
    color: var(--gont-hover, #f4a201);
    text-decoration: underline;
}

.gont-sep {
    opacity: 0.5;
    padding: 0 4px;
}

.gont-label {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    color: #ffffff;
}

.gont-label-breaking {
    background-color: var(--gont-label, #ff4444);
    animation: gont-blink 1.2s ease-in-out infinite;
}

.gont-label-new {
    background-color: var(--gont-hover, #f4a201);
    color: #000000;
}

@keyframes gont-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
    .gont-ticker-track     { animation: none; }
    .gont-label-breaking   { animation: none; }
    .gont-ticker-wrap      { overflow-x: auto; }
}
