:root {
  --frame-desktop: 1440px;
  --content-max: 1280px;
  --radius: 16px;
  --radius-hero: 20px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --red: #D60000;
  --dark: #111111;
  --navy: #0B1220;
  --bg: #F6F7FB;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --gray: #6B7280;
  --success: #16A34A;
  --warning: #F59E0B;
  --info: #2563EB;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

.container {
  width: min(var(--content-max), calc(100% - 160px));
  margin-inline: auto;
}
.page-bg { padding: var(--space-4) 0 var(--space-6); }

.top-strip { background: #EEF2FF; border-bottom: 1px solid var(--border); }
.top-strip-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 12px;
}
.divider-dot { color: #9CA3AF; }

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.brand strong { display: block; font-size: 18px; font-weight: 800; }
.brand small { color: var(--gray); font-size: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.top-nav { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.top-nav a { font-size: 14px; font-weight: 600; color: #374151; }
.live-btn { background: var(--red); color: #fff !important; padding: 10px 16px; border-radius: 999px; }
.search-inline { margin-left: auto; }
.search-inline input {
  width: 220px; height: 48px; border: 1px solid var(--border); border-radius: 999px;
  padding: 0 16px; font-size: 14px; background: #fff;
}
.header-utils {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.lang-selector {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0 10px;
  background: #fff;
}

.breaking-strip { background: var(--navy); color: #fff; border-bottom: 1px solid #1f2937; }
.breaking-inner { min-height: 52px; display: flex; align-items: center; gap: 12px; overflow-x: auto; }
.breaking-item { font-size: 13px; white-space: nowrap; color: #E5E7EB; }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: #F3F4F6; color: #374151;
}
.badge-breaking { background: #FEE2E2; color: var(--red); }
.badge-info { background: #DBEAFE; color: var(--info); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-3);
}
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.main-home { align-items: start; }
.stack-24 > * + * { margin-top: var(--space-3); }
.stack-32 > * + * { margin-top: var(--space-4); }

.hero-card {
  border-radius: var(--radius-hero);
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.06);
}
.hero-media { width: 100%; height: 360px; object-fit: cover; display: block; }
.hero-content { padding: 24px; }
.hero-content h1 { margin: 8px 0 12px; font-size: clamp(32px, 3.2vw, 40px); line-height: 1.1; }
.hero-content p { margin: 0 0 16px; color: #374151; font-size: 16px; }

.section-head { margin-bottom: var(--space-2); }
.section-head h2 { margin: 0; font-size: clamp(28px, 2.3vw, 32px); line-height: 1.2; }

.card-grid { display: grid; gap: var(--space-3); }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.news-card, .panel, .live-promo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.news-card h3 { margin: 10px 0 8px; font-size: 22px; line-height: 1.25; }
.news-card p { margin: 0 0 12px; color: #374151; font-size: 15px; }
.news-card-compact img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 10px;
}
.meta { color: var(--gray); font-size: 12px; }

.live-promo h2 { margin: 0 0 8px; }
.live-promo p { margin: 0 0 14px; }

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-clean li:last-child { border-bottom: 0; padding-bottom: 0; }
.list-clean a { font-size: 15px; font-weight: 600; line-height: 1.35; }

.newsletter-form { display: grid; gap: 10px; margin-top: 12px; }
.newsletter-form input {
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 18px; border-radius: 12px; font-weight: 700;
  border: none;
}
.btn-primary { background: var(--red); color: #fff; }

.site-footer {
  margin-top: var(--space-5);
  padding: 32px 0;
  background: var(--navy);
  color: #fff;
}
.footer-row { display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; }
.footer-links { display: flex; gap: var(--space-3); }
.footer-links a { color: #e5e7eb; }

@media (max-width: 1180px) {
  .container { width: min(var(--content-max), calc(100% - 64px)); }
  .col-md-12 { grid-column: span 12; }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-utils { order: 4; width: 100%; justify-content: flex-end; }
}

@media (max-width: 760px) {
  .container { width: min(100%, calc(100% - 32px)); }
  .top-strip { display: none; }
  .nav-shell { flex-wrap: wrap; gap: var(--space-2); padding: 10px 0; }
  .brand { min-width: 0; }
  .top-nav { width: 100%; order: 3; }
  .search-inline { margin-left: 0; width: 100%; order: 2; }
  .search-inline input { width: 100%; }
  .header-utils { justify-content: space-between; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .hero-media { height: 220px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* Auth shell */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand {
  background: linear-gradient(160deg, #0B1220, #111827);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.auth-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.auth-field { margin-bottom: 14px; display: grid; gap: 6px; }
.auth-field input {
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
}
.error-msg {
  border: 1px solid #FCA5A5;
  color: #991B1B;
  background: #FEF2F2;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
}
.success-msg {
  border: 1px solid #86EFAC;
  color: #166534;
  background: #F0FDF4;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { padding: 32px 20px; }
}
