#bbc-news-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.news-header h1 {
    color: #BB1919;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.news-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
    position: relative;
}

.tab-button:hover {
    color: #333;
}

.tab-button.active {
    color: #BB1919;
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #BB1919;
}

.tab-content {
    padding: 1.5rem 0;
    min-height: 300px;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.news-item {
    padding: 1.5rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #222;
    line-height: 1.4;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: #BB1919;
    text-decoration: underline;
}

.news-summary {
    color: #555;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
}

.news-time::before {
    content: '🕒';
    margin-right: 0.3rem;
}

.weekly-history-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.day-container {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.day-header {
    color: #BB1919;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.day-news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.news-item.compact {
    padding: 0.75rem;
    border-radius: 6px;
    background: #f9f9f9;
}

.news-item.compact .news-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.news-item.compact .news-meta {
    font-size: 0.75rem;
}

.more-button {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.75rem;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.more-button:hover {
    background: #f0f0f0;
    color: #BB1919;
    border-color: #BB1919;
}

.history-date-header {
    color: #BB1919;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaeaea;
}

.back-button {
    background: none;
    border: none;
    color: #BB1919;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
}

.back-button:hover {
    text-decoration: underline;
}

.error-message {
    padding: 1.5rem;
    background-color: #ffebee;
    border-radius: 8px;
    color: #d32f2f;
    margin: 1rem 0;
    text-align: center;
}

.reload-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background: #BB1919;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.reload-button:hover {
    background: #9e1515;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-item {
    animation: fadeIn 0.3s ease forwards;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }

.news-item.compact {
    animation: fadeIn 0.2s ease forwards;
}

@media (max-width: 768px) {
    #bbc-news-container {
        padding: 1.5rem;
    }
    
    .news-tabs {
        justify-content: center;
    }
    
    .news-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .news-header h1 {
        font-size: 1.5rem;
    }
    
    .tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-summary {
        font-size: 0.95rem;
    }
}