* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 24px;
    color: #d32f2f;
}

.live-badge {
    background: #d32f2f;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

.location-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 20px;
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.update-time {
    font-size: 12px;
    color: #999;
}

.headlines-list {
    max-height: 600px;
    overflow-y: auto;
}

.headline-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.headline-item:hover {
    background: #f9f9f9;
}

.headline-number {
    font-size: 20px;
    font-weight: bold;
    color: #d32f2f;
    opacity: 0.6;
}

.headline-content {
    flex: 1;
}

.headline-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
}

.headline-time {
    font-size: 11px;
    color: #999;
}

.refresh-btn {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.refresh-btn:hover {
    background: #e0e0e0;
}

/* News Feed Styles */
.news-feed {
    flex: 1;
}

.location-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-chip {
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.filter-chip.active {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

.filter-chip:hover {
    background: #e0e0e0;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    gap: 20px;
    padding: 20px;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.news-summary {
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.video-badge, .location-badge {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.video-container {
    margin: 15px 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.read-more {
    display: inline-block;
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
}

.read-more:hover {
    text-decoration: underline;
}

.load-more-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: #f0f0f0;
}

.loading, .error, .no-news {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .controls {
        flex-direction: column;
        width: 100%;
    }
    
    .view-toggle, .location-select {
        width: 100%;
    }
    
    .toggle-btn {
        flex: 1;
    }
}