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

/* ===== BODY (Telegram-safe) ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--tg-theme-bg-color, #000);
    color: var(--tg-theme-text-color, #fff);
    height: 100vh;
    overflow: hidden;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TITLE ===== */
.page-title {
    margin-bottom: 20px;
    color: #FFD700;
    text-align: center;
}

/* ===== NEWS SECTION (SCROLL AREA) ===== */
.news-section {
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

/* ===== NEWS CARD ===== */
.news-item {
    background: var(--tg-theme-secondary-bg-color, #232323);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid #FFD700;
}

.news-title {
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 6px;
}

.news-content {
    color: #fff8e1;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-date {
    font-size: 12px;
    color: #bdb76b;
    margin-bottom: 10px;
}

/* ===== BADGE ===== */
.news-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 8px;
    background: #FFD700;
    color: #232323;
}

.important-item .news-type {
    background: #ef4444;
    color: #fff;
}

/* ===== READ MORE BUTTON ===== */
.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: #FFD700;
    color: #232323;
    border-radius: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.read-more:hover {
    opacity: 0.85;
}

.read-more,
.read-more:visited {
    color: #232323;
}

/* ===== FILTER BUTTONS ===== */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-buttons button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 14px;
    background: #FFD700;
    color: #232323;
    font-weight: bold;
    cursor: pointer;
}

/* ===== BACK BUTTON ===== */
.back-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    background: rgba(255, 215, 0, 0.25);
    color: #FFD700;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

/* ===== EMPTY STATE ===== */
.empty {
    text-align: center;
    color: #999;
}
