* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #d32f2f;
    --primary-dark: #b71c1c;
    --secondary: #1a1a1a;
    --accent: #ff5722;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.header {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--secondary);
    color: var(--white);
    padding: 8px 0;
    font-size: 12px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 2em;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.logo p {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.header-search {
    display: flex;
    align-items: center;
}

.header-search input {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    width: 200px;
    outline: none;
}

.header-search button {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

/* Navigation */
.nav {
    background: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 18px;
    padding: 12px 15px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-dark);
}

/* Breaking News */
.breaking-news {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.breaking-ticker {
    overflow: hidden;
    flex: 1;
}

.breaking-ticker p {
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    font-size: 14px;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Main Content */
.main { padding: 20px 0; }

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.section-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
}

/* News Grid */
.news-section { margin-bottom: 25px; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.card:hover { transform: translateY(-3px); }

.card-image { position: relative; }
.card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-content { padding: 12px; }

.card-content h3 {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content h3 a { color: var(--text); }
.card-content h3 a:hover { color: var(--primary); }

.card-content p {
    font-size: 13px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Category Badge */
.category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    position: absolute;
    top: 10px;
    left: 10px;
}

.category.hot { background: #ff5722; }
.category.viral { background: #9c27b0; }
.category.seleb { background: #e91e63; }
.category.sport { background: #2196f3; }
.category.lifestyle { background: #4caf50; }
.category.tech { background: #2196f3; }
.category.business { background: #ff9800; }

.category.small {
    position: static;
    display: inline-block;
    margin-bottom: 5px;
}

time {
    color: var(--text-muted);
    font-size: 12px;
    display: block;
}

/* Featured News */
.featured-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.featured-main {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-main .card-image img { height: 350px; }

.featured-main .card-content {
    padding: 20px;
}

.featured-main .card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    -webkit-line-clamp: 3;
}

.featured-main .card-content p {
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.featured-side { display: flex; flex-direction: column; gap: 15px; }

.card-horizontal {
    display: flex;
    gap: 12px;
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-horizontal .card-image { width: 120px; flex-shrink: 0; }
.card-horizontal .card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-horizontal .card-content { flex: 1; padding: 12px; }
.card-horizontal .card-content h3 { font-size: 13px; }

/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.video-card {
    position: relative;
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-card:hover { transform: translateY(-3px); }

.video-card .card-image {
    position: relative;
}

.video-card .card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,0,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.play-icon:hover {
    background: #d32f2f;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget {
    background: var(--white);
    border-radius: 6px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    text-transform: uppercase;
    color: var(--primary);
}

/* Hot Topics Tags */
.hot-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    background: var(--bg);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text);
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
}

.tag.hot {
    background: #ff5722;
    color: var(--white);
}

/* Popular Posts */
.popular-list { list-style: none; }

.popular-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.popular-item:last-child { border-bottom: none; }

.popular-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.popular-item h4 {
    font-size: 13px;
    line-height: 1.4;
}

.popular-item h4 a { color: var(--text); }
.popular-item h4 a:hover { color: var(--primary); }

/* Social Widget */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.2s, opacity 0.2s;
}

.social-btn:hover {
    transform: translateX(5px);
    opacity: 0.9;
    color: white;
}

.social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.tiktok { background: #000; }
.social-btn.x { background: #000; }
.social-btn.fb { background: #1877f2; }
.social-btn.yt { background: #ff0000; }

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Article Page */
.breadcrumb {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

.article {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 25px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.article-header { margin-bottom: 20px; }

.article-header h1 {
    font-size: 1.8em;
    line-height: 1.3;
    margin: 12px 0;
    color: var(--secondary);
}

.article-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 13px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.article-image { margin: 20px -25px; }
.article-image img { width: 100%; }
.article-image figcaption {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 8px;
    padding: 0 25px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.3em;
    margin: 30px 0 15px;
    color: var(--secondary);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 15px 0 20px 25px;
}

.article-content li { margin-bottom: 8px; }

.article-content blockquote {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

.article-content .callout {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 6px 6px 0;
}

.article-tags {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.article-tags span {
    font-weight: 600;
    margin-right: 10px;
    font-size: 14px;
}

.article-tags a {
    display: inline-block;
    background: var(--bg);
    padding: 5px 12px;
    border-radius: 20px;
    margin: 3px;
    font-size: 12px;
}

.article-tags a:hover {
    background: var(--primary);
    color: var(--white);
}

.article-share {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: #333;
    color: var(--white);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.share-btn:hover { color: var(--white); }

.share-btn.facebook { background: #1877f2; }
.share-btn.facebook:hover { background: #1565c0; }

.share-btn.twitter { background: #000; }
.share-btn.twitter:hover { background: #333; }

.share-btn.whatsapp { background: #25d366; }
.share-btn.whatsapp:hover { background: #1da851; }

.author-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg);
    border-radius: 6px;
    margin: 30px 0;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.author-info h4 { font-size: 14px; margin-bottom: 5px; }
.author-info p { font-size: 13px; color: var(--text-light); }

.related-articles { margin: 30px 0; }

.related-articles h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .featured-section { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-main { flex-direction: column; gap: 10px; padding: 10px 0; }
    .header-search { width: 100%; }
    .header-search input { width: 100%; font-size: 16px; padding: 12px 15px; }
    .header-search button { padding: 12px 20px; }
    
    .logo h1 { font-size: 1.5em; }
    .logo p { font-size: 10px; }
    
    .nav-toggle { display: block; font-size: 16px; padding: 15px; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        width: 100%;
        background: var(--primary);
        z-index: 100;
        top: 100%;
        left: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-menu a { 
        padding: 14px 20px; 
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 14px;
        text-align: left;
    }
    .nav-menu a:hover { background: var(--primary-dark); }
    
    .breaking-news .container { flex-direction: column; text-align: center; gap: 10px; }
    .breaking-ticker p { font-size: 13px; }
    
    .main { padding: 15px 0; }
    .container { padding: 0 12px; }
    
    .section-header { margin-bottom: 12px; }
    .section-title { font-size: 1em; }
    
    .news-grid { grid-template-columns: 1fr; gap: 15px; }
    .video-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .card { margin-bottom: 0; }
    .card-image img { height: 180px; }
    .card-content { padding: 12px; }
    .card-content h3 { font-size: 14px; }
    
    .article { padding: 15px; margin: 10px 0; }
    .article-header h1 { font-size: 1.3em; line-height: 1.3; }
    .article-image { margin: 15px -15px; }
    .article-image img { height: auto; }
    .article-meta { flex-wrap: wrap; gap: 8px; font-size: 12px; }
    .article-content { font-size: 15px; line-height: 1.7; }
    .article-content h2 { font-size: 1.2em; }
    
    .article-share { flex-wrap: wrap; }
    .share-btn { font-size: 12px; padding: 8px 12px; }
    
    .author-box { flex-direction: column; text-align: center; padding: 15px; }
    .author-avatar img { width: 50px; height: 50px; }
    
    .social-links { gap: 8px; }
    .social-btn { padding: 12px; font-size: 13px; }
    
    .widget { padding: 12px; }
    .widget-title { font-size: 13px; }
    
    .popular-item { padding: 10px 0; }
    .popular-item h4 { font-size: 12px; }
    
    .hot-topics { gap: 6px; }
    .tag { font-size: 11px; padding: 4px 10px; }
    
    .breadcrumb { font-size: 12px; padding: 10px 0; }
}

@media (max-width: 480px) {
    .header-main { padding: 8px 0; }
    .logo h1 { font-size: 1.3em; }
    
    .nav-menu a { padding: 12px 15px; font-size: 13px; }
    
    .card-image img { height: 160px; }
    .card-content h3 { font-size: 13px; }
    
    .article-header h1 { font-size: 1.2em; }
    .article-content { font-size: 14px; }
    
    .share-btn { font-size: 11px; padding: 6px 10px; gap: 4px; }
    .share-btn i { font-size: 12px; }
}