:root {
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --danger: #dc2626;
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 800px; margin: 0 auto; padding: 0 16px; }

.site-header { background: #1e293b; color: #fff; padding: 16px 0; margin-bottom: 24px; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo a { color: #fff; text-decoration: none; font-size: 20px; font-weight: bold; }
.nav-links a { color: #cbd5e1; text-decoration: none; margin-left: 16px; font-size: 14px; }

.btn { display: inline-block; padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; text-decoration: none; font-size: 14px; }
.btn-primary { background: var(--accent); color: #fff; border: none; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger { background: var(--danger); color: #fff; border: none; }

.search-form { display: flex; gap: 8px; margin-bottom: 16px; }
.input-text, .input-title { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; }
.input-title { font-size: 18px; font-weight: bold; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tag-pill { background: #e2e8f0; color: #334155; padding: 4px 10px; border-radius: 99px; text-decoration: none; font-size: 13px; }

.post-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.post-card.pinned { border-left: 4px solid #f59e0b; }
.post-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.post-header h2 a, .post-header h1 { color: var(--text); text-decoration: none; font-size: 20px; }
.post-body { margin-bottom: 14px; font-size: 16px; word-break: break-word; }
.post-body p { margin-bottom: 12px; }
.post-body img { max-width: 100%; height: auto; border-radius: 6px; }
.post-footer { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; }
.post-tags a { color: var(--accent); text-decoration: none; margin-left: 6px; }

.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 8px; margin: 12px 0; padding-bottom: 6px; }
.slider-track img { scroll-snap-align: center; max-height: 420px; width: auto; object-fit: contain; }

.media-player { width: 100%; border-radius: 6px; margin: 10px 0; }
.post-hidden-content { display: none; }
.post-read-more-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 14px; font-weight: bold; margin-top: 6px; }

.pagination { display: flex; justify-content: space-between; align-items: center; margin: 24px 0; }
.form-group { margin-bottom: 14px; }
.form-options { display: flex; gap: 20px; margin-bottom: 16px; }
.login-box { max-width: 400px; margin: 60px auto; background: #fff; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.table-sessions { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table-sessions th, .table-sessions td { border: 1px solid var(--border); padding: 8px 12px; font-size: 14px; text-align: left; }