.predictiva-news-viewer-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #3498db;
}

.news-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-icon {
    flex-shrink: 0;
}

.news-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.news-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 13px;
    font-weight: 600;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.news-ticker-wrapper {
    position: relative;
    height: 120px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.news-ticker {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.news-ticker-content {
    display: flex;
    gap: 40px;
    position: absolute;
    white-space: nowrap;
    will-change: transform;
}

#<portlet:namespace />tickerContentClone {
    display: flex;
    gap: 40px;
    position: absolute;
    white-space: nowrap;
    will-change: transform;
}

.news-item {
    flex-shrink: 0;
    padding: 16px 24px;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 350px;
    max-width: 450px;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

.news-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.category-market-analysis { background: #e8f4fd; color: #2980b9; }
.category-economic-indicators { background: #fff3cd; color: #856404; }
.category-corporate-news { background: #d4edda; color: #155724; }
.category-technology-trends { background: #f8d7da; color: #721c24; }
.category-regulatory-updates { background: #e2e3e5; color: #383d41; }
.category-commodity-prices { background: #d1ecf1; color: #0c5460; }
.category-currency-markets { background: #e7e8ea; color: #495057; }
.category-investment-insights { background: #f5e6ff; color: #6f42c1; }

.news-date {
    font-size: 11px;
    color: #95a5a6;
    font-weight: 500;
}

.news-item-title {
    margin: 8px 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-summary {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.4;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item.no-news {
    text-align: center;
    padding: 30px;
    min-width: 100%;
}

.news-item.no-news p {
    color: #95a5a6;
    font-size: 14px;
}

.news-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e1e8ed;
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.control-btn:active {
    transform: scale(0.95);
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.speed-control input[type="range"] {
    width: 120px;
    height: 4px;
    background: #dce0e3;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.speed-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.speed-control input[type="range"]::-webkit-slider-thumb:hover {
    background: #2980b9;
    transform: scale(1.2);
}

.speed-label {
    font-size: 12px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .news-ticker-wrapper {
        height: 140px;
    }
    
    .news-item {
        min-width: 280px;
        max-width: 320px;
    }
    
    .news-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .speed-control {
        margin-left: 0;
    }
}