:root {
    color-scheme: light;
    --bg: #f5f7ff;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #2563eb;
    --accent-2: #0f172a;
    --accent-soft: #dbeafe;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --border: #e2e8f0;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    color: var(--text);
    min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1160px, 94%); margin: 0 auto; }
.site-header {
    background: rgba(15, 23, 42, 0.96);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
}
.nav-wrap, .footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-nav a {
    color: white;
    margin-left: 0.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    transition: background 0.2s ease;
}
.site-nav a:hover { background: rgba(255,255,255,0.14); text-decoration: none; }
.brand { color: white; font-weight: bold; text-decoration: none; font-size: 1.2rem; }
main { padding: 2rem 0 3rem; }
.hero, .card, .panel, .table-wrap {
    background: var(--panel);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border);
}
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: white;
}
.hero p { color: rgba(255,255,255,0.85); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1rem; }
.stat { padding: 1rem; border-radius: 12px; background: linear-gradient(135deg, var(--accent-soft), #eff6ff); }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-group { margin-bottom: 0.95rem; display: flex; flex-direction: column; gap: 0.35rem; }
label { font-weight: 600; }
input, textarea, select, button {
    font: inherit;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}
input:focus, textarea:focus, select:focus {
    outline: 2px solid rgba(37, 99, 235, 0.2);
    border-color: var(--accent);
}
button {
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}
button:hover { transform: translateY(-1px); }
button.secondary { background: #e2e8f0; color: var(--text); box-shadow: none; }
button.danger { background: linear-gradient(135deg, var(--danger), #ef4444); }
.tv-player { aspect-ratio: 16 / 4; background: #000; border-radius: 12px; overflow: hidden; }
.tv-player iframe, .tv-player video { width: 100%; height: 100%; border: 0; }
.tv-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.live-badge { background: #dc2626; color: white; padding: 0.3rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: bold; }
.carousel-list { display: grid; gap: 1rem; }
.carousel-item { display: flex; gap: 1rem; align-items: center; padding: 0.8rem; border: 1px solid var(--border); border-radius: 12px; background: #fafcff; }
.carousel-item img, .video-thumb { width: 180px; border-radius: 10px; object-fit: cover; }
@media (max-width: 640px) {
    .carousel-item { flex-direction: column; align-items: flex-start; }
    .carousel-item img, .video-thumb { width: 100%; max-height: 200px; }
}
.alert { padding: 0.9rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; }
.site-footer {
    padding: 1rem 0 2rem;
    color: var(--muted);
    background: linear-gradient(180deg, #f8fbff 0%, #eff4ff 100%);
    border-top: 1px solid var(--border);
}
.auth-card { max-width: 560px; margin: 0 auto; }
.comment-list { display: grid; gap: 0.7rem; }
.comment-item { border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem; background: #f8fafc; }
.comment-form { display: flex; flex-direction: column; gap: 0.6rem; }
.blog-list { display: grid; gap: 1.2rem; margin-top: 1rem; }
.blog-article { display: flex; flex-direction: column; gap: 1rem; }
.blog-article__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.blog-article__meta { color: var(--muted); margin: 0.25rem 0 0; font-size: 0.95rem; }
.blog-media { display: grid; gap: 0.75rem; }
.blog-media__featured { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; }
.blog-media__thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.7rem; }
.blog-media__thumbs img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }
.blog-article__summary { margin: 0; line-height: 1.7; color: var(--text); }
.blog-details { border-top: 1px solid var(--border); padding-top: 0.9rem; }
.blog-details summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.blog-content { margin-top: 0.8rem; display: grid; gap: 1rem; }
.blog-gallery { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.blog-gallery__item { margin: 0; }
.blog-gallery__item img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.mt { margin-top: 1rem; }
.small { color: var(--muted); font-size: 0.9rem; }
