/* ThaiPuls Direkt — Live News Feed */
.tpd-wrap {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.tpd-header {
    text-align: center;
    padding: 30px 0 20px;
    border-bottom: 3px solid #ec3535;
    margin-bottom: 20px;
}
.tpd-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ec3535;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.tpd-pulse {
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: tpd-pulse 1.5s ease-in-out infinite;
}
@keyframes tpd-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
.tpd-title {
    font-size: 32px;
    font-weight: 800;
    margin: 8px 0 4px;
    color: #111;
}
.tpd-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
}
.tpd-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.tpd-filter {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.tpd-filter:hover { border-color: #ec3535; color: #ec3535; }
.tpd-filter.active { background: #ec3535; color: #fff; border-color: #ec3535; }

/* Timeline */
.tpd-timeline {
    position: relative;
    padding-left: 80px;
}
.tpd-timeline::before {
    content: '';
    position: absolute;
    left: 70px;
    top: 0; bottom: 0;
    width: 2px;
    background: #e5e5e5;
}
.tpd-item {
    position: relative;
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    animation: tpd-fadein 0.4s ease;
}
@keyframes tpd-fadein {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.tpd-item::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 22px;
    width: 8px; height: 8px;
    background: #ccc;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5e5e5;
}
.tpd-breaking::before { background: #ec3535; box-shadow: 0 0 0 2px #ec3535; }
.tpd-time {
    flex: 0 0 auto;
    position: absolute;
    left: -80px;
    top: 18px;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-align: right;
    width: 55px;
}
.tpd-content {
    flex: 1;
    min-width: 0;
}
.tpd-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}
.tpd-item-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin: 0;
}
.tpd-meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 12px;
}
.tpd-source {
    color: #0073aa;
    text-decoration: none;
}
.tpd-source:hover { text-decoration: underline; }
.tpd-cat {
    color: #999;
    background: #f5f5f5;
    padding: 1px 8px;
    border-radius: 10px;
}
.tpd-badge-breaking {
    display: inline-block;
    background: #ec3535;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-right: 4px;
    vertical-align: middle;
}
.tpd-breaking {
    background: #fff5f5;
    border-left: 3px solid #ec3535;
    padding-left: 16px;
    margin-left: -16px;
}
.tpd-breaking .tpd-item-title { color: #ec3535; }
.tpd-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}
.tpd-new-badge {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #ec3535;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(236,53,53,0.3);
    animation: tpd-fadein 0.3s;
}
.tpd-new-badge:hover { background: #d32f2f; }

/* Responsive */
@media (max-width: 600px) {
    .tpd-timeline { padding-left: 0; }
    .tpd-timeline::before { display: none; }
    .tpd-item::before { display: none; }
    .tpd-time { position: static; width: auto; text-align: left; margin-bottom: 4px; }
    .tpd-item { flex-direction: column; gap: 4px; }
    .tpd-title { font-size: 24px; }
}
