:root {
  --brand-blue:   #0ea5e9;
  --brand-dark:   #0c1a2e;
  --brand-darker: #081320;
  --text-main:    #0f172a;
  --text-muted:   #475569;
  --border-color: #e2e8f0;
  --bg-light:     #f8fafc;
  --radius:       10px;
  --shadow:       0 4px 18px rgba(0,0,0,.08);
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  background: var(--brand-dark);
  border-bottom: 3px solid var(--brand-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.navwrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo-large { height: 52px; width: auto; object-fit: contain; }
.brand strong { display: block; color: #fff; font-size: 1.05rem; line-height: 1.2; }
.brand span { display: block; color: #94a3b8; font-size: .8rem; }

.menu { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.menu a {
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.menu a:hover { background: var(--brand-blue); color: #fff; text-decoration: none; }

main { padding-bottom: 40px; }

.banner-row-top { padding: 16px 16px 0; }
.banner-slider-wrap { width: 100%; overflow: hidden; border-radius: var(--radius); }
.banner-top { background: #fff; border: 1px solid var(--border-color); }
.banner-top img { width: 100%; height: auto; object-fit: cover; display: block; }

.hero-section {
  display: flex;
  gap: 20px;
  padding: 20px 16px 0;
  align-items: flex-start;
}
.hero-main { flex: 1 1 0; min-width: 0; }
.hero-side {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.section-title h1 { font-size: 1.4rem; color: var(--text-main); }

.live-badge {
  background: #ef4444;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 30px;
  letter-spacing: .5px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.55} }

.player-box {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.responsive-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.responsive-embed iframe,
.responsive-embed object,
.responsive-embed embed,
.responsive-embed video {
  position: absolute; top:0; left:0; width:100%; height:100%; border:0;
}

.banner-below-player {
  margin-top: 12px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: #fff;
}
.banner-below-player img { width: 100%; height: auto; display: block; }

.side-banner-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: var(--shadow);
}
.side-banner-item img { width: 100%; height: auto; display: block; }

.slider { position: relative; }
.slider > a { display: none; }
.slider > a.active { display: block; }

.news-section { padding: 28px 16px 0; }

.section-news-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border-color);
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.news-card > a { display: block; color: inherit; text-decoration: none; height: 100%; }

.news-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #e2e8f0; }
.news-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-thumb-placeholder { background: linear-gradient(135deg,#cbd5e1,#94a3b8); }

.news-body { padding: 14px; }
.news-body h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text-main);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-body p {
  font-size: .875rem; color: var(--text-muted); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-body small { font-size: .78rem; color: #94a3b8; }
.no-news { color: var(--text-muted); font-style: italic; padding: 20px 0; }

.placeholder {
  background: #e2e8f0; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: var(--radius); text-align: center; padding: 16px;
}
.placeholder.small { width: 300px; height: 250px; }

.footer {
  background: var(--brand-darker);
  color: #94a3b8;
  margin-top: 48px;
  padding: 40px 0 24px;
  font-size: .9rem;
}
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.footer p { margin-bottom: 6px; }
.footer a { color: var(--brand-blue); }
.footer a:hover { color: #fff; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  background: var(--brand-blue);
  color: #fff;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); }

.cookie-banner {
  position: fixed; bottom:0; left:0; right:0;
  background: var(--brand-dark); color: #e2e8f0;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  flex-wrap: wrap;
}
.cookie-banner strong { color: #fff; display: block; margin-bottom: 4px; }
.cookie-banner p { font-size: .85rem; margin: 0; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.admin-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-main); font-size: .95rem; }
.form-control {
  width: 100%; padding: 11px 14px;
  border-radius: 8px; border: 1.5px solid var(--border-color);
  background: var(--bg-light); color: var(--text-main);
  font-size: 1rem; transition: border-color .2s; font-family: inherit;
}
.form-control:focus { border-color: var(--brand-blue); outline: none; background: #fff; }
select.form-control { cursor: pointer; }

.alert-msg {
  background: #dcfce7; color: #15803d;
  padding: 14px 18px; border-radius: 8px;
  margin-bottom: 24px; font-weight: 600;
  border-left: 4px solid #22c55e;
}
.btn-admin {
  background: var(--brand-blue); color: #fff;
  border: none; padding: 12px 28px;
  font-size: 1rem; font-weight: 700;
  border-radius: 8px; cursor: pointer; transition: opacity .2s;
  display: inline-block;
}
.btn-admin:hover { opacity: .85; }

@media (max-width: 900px) {
  .hero-section { flex-direction: column; }
  .hero-side { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .side-banner-item { flex: 1 1 280px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .brand-logo-large { height: 40px; }
  .navwrap { height: 60px; }
  .brand strong { font-size: .9rem; }
  .brand span { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .admin-box { padding: 18px; }
  .cookie-banner { flex-direction: column; }
}