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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

header {
    background: #1a1a2e;
    color: #fff;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

main {
    flex: 1;
    padding: 30px 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 5px;
}

.lead {
    font-size: 1rem;
    color: #666;
}

.btn-refresh {
    background: #4361ee;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-refresh:hover {
    background: #3651d4;
}

.btn-refresh:disabled {
    background: #999;
    cursor: not-allowed;
}

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

@media (max-width: 900px) {
    .news-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
}

.news-section {
    border-left: 1px solid #e0e0e0;
    padding-left: 20px;
}

.news-section:first-child {
    border-left: 1px solid #e0e0e0;
    padding-left: 20px;
}

@media (max-width: 900px) {
    .news-section {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e0e0e0;
        padding-top: 20px;
    }
    .news-section:first-child,
    .news-section:nth-child(2) {
        border-top: none;
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    .news-section:nth-child(2) {
        border-top: 1px solid #e0e0e0;
        padding-top: 20px;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #222;
}

.section-header h2 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #222;
}

.more-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    color: #666;
    text-decoration: none;
}

.more-link:hover {
    color: #222;
    text-decoration: underline;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-card {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.article-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover h3 {
    color: #555;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.article-odds {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.article-card h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
    margin-bottom: 8px;
}

.article-preview {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
}

.read-more {
    font-size: 0.85rem;
    color: #4361ee;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.no-articles {
    padding: 30px 0;
    text-align: center;
    color: #999;
    font-style: italic;
}

footer {
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 20px 0;
    margin-top: auto;
}

.disclaimer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

.brief-full {
    max-width: 700px;
    margin: 0 auto;
}

.back-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: inline-block;
    color: #666;
    text-decoration: none;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.back-link:hover {
    color: #222;
}

.brief-header-full {
    margin-bottom: 20px;
}

.article-meta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.brief-full h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.3;
}

.brief-meta-full {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: #666;
}

.meta-item strong {
    color: #222;
}

.brief-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.brief-content h3 {
    font-size: 1.3rem;
    color: #222;
    margin: 30px 0 15px;
    font-weight: 400;
}

.brief-content p {
    margin-bottom: 1.2em;
}

.brief-footer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.8rem;
    color: #888;
}

.brief-footer p {
    margin-bottom: 5px;
}

.category-page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #222;
}

.category-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.briefs-list {
    max-width: 700px;
}

.brief-card {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.brief-card:first-child {
    padding-top: 0;
}

.brief-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.brief-card:hover h3 {
    color: #555;
}

.brief-header {
    margin-bottom: 10px;
}

.market-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.brief-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
    color: #222;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.event-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-style: italic;
}
