/**
 * FASTNEWS Ticker - Стили бегущей строки
 */

.fastnews-ticker-outer {
    width: 100%;
    background-color: transparent;
    padding: 6px 0;
}

.fastnews-ticker-wrapper {
    display: flex;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    background-color: transparent;
    overflow: hidden;
    position: relative;
    height: 28px;
}

@media (max-width: 1199px) {
    .fastnews-ticker-wrapper {
        max-width: 985px;
    }
}

@media (max-width: 991px) {
    .fastnews-ticker-wrapper {
        max-width: 755px;
    }
}

@media (max-width: 767px) {
    .fastnews-ticker-wrapper {
        max-width: 99%;
    }
}

.fastnews-ticker-label {
    background-color: #c8102e;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    padding: 6px 12px;
    white-space: nowrap;
    z-index: 10;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fastnews-ticker-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    background-color: transparent;
    height: 100%;
    display: flex;
    align-items: center;
}

.fastnews-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: fastnews-scroll 40s linear infinite;
}

.fastnews-ticker-content:hover {
    animation-play-state: paused;
}

.fastnews-ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 14px;
    font-size: 14px;
    color: #333;
}

.fastnews-ticker-item::after {
    content: "•";
    margin-left: 14px;
    color: #c8102e;
    font-weight: bold;
}

.fastnews-ticker-item:last-child::after {
    content: "";
}

.fastnews-ticker-time {
    color: #c8102e;
    font-weight: 700;
    margin-right: 14px;
    font-size: 14px;
}

.fastnews-ticker-item .fastnews-ticker-time {
    margin-right: 14px !important;
}

.fastnews-ticker-title {
    font-weight: 600;
    margin-right: 8px;
}

.fastnews-ticker-excerpt {
    color: #666;
    font-weight: 400;
}

.fastnews-ticker-title,
.fastnews-ticker-excerpt {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 14px !important;
    font: inherit;
    vertical-align: baseline;
    font-family: "Open Sans", sans-serif;
}

.fastnews-ticker-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fastnews-ticker-item a:hover {
    color: #c8102e;
    text-decoration: underline;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .fastnews-ticker-wrapper {
        height: 36px;
    }
    
    .fastnews-ticker-label {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .fastnews-ticker-item {
        font-size: 12px;
        margin-right: 12px;
    }
    
    .fastnews-ticker-item::after {
        margin-left: 12px;
    }
    
    .fastnews-ticker-time {
        font-size: 12px;
    }
}
