@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Source+Serif+4:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap");

:root {
  --bg: #f5f4ef;
  --ink: #0b1220;
  --accent: #1b4ea0; /* BiH blue */
  --accent-2: #f0c300; /* BiH yellow */
  --accent-3: #0f2a66;
  --paper: #fefcf6;
  --steel: #6c7a90;
  --panel: #f4f7fb;
  --border: rgba(11, 18, 32, 0.12);
  --shadow: rgba(11, 18, 32, 0.12);
  --shadow-soft: 0 10px 24px rgba(11, 18, 32, 0.08);
  --shadow-strong: 0 18px 34px rgba(11, 18, 32, 0.14);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --mono: "IBM Plex Mono", monospace;
  --display: "Source Serif 4", serif;
  --sans: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(240, 195, 0, 0.18), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(27, 78, 160, 0.2), transparent 40%),
    linear-gradient(180deg, #f6f8fb, #f3f1ea 60%, #f7f8fb);
  font-family: var(--sans);
  line-height: 1.55;
  width: 100%;
  overflow-x: hidden;
}

html {
  width: 100%;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  transition: color 140ms ease, opacity 140ms ease, transform 140ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(240, 195, 0, 0.95);
  outline-offset: 2px;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(95deg, rgba(9, 29, 74, 0.94), rgba(15, 42, 102, 0.9));
  color: #fff;
  border-bottom: 1px solid rgba(240, 195, 0, 0.35);
  padding: 12px 14px;
  box-shadow: 0 14px 30px rgba(11, 18, 32, 0.24);
  backdrop-filter: blur(8px);
}

.site-header-inner {
  width: min(1420px, 100%);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-top {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--accent-2);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #dbe2f1;
}

.brand-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #c4cfeb;
}

.main-nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: visible;
  scrollbar-width: thin;
  padding: 2px 0 4px;
  align-items: center;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.nav-dropdown-toggle::after {
  content: "▾";
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.8;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid rgba(11, 18, 32, 0.12);
  border-radius: 12px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 60;
  box-shadow: var(--shadow-strong);
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown-menu a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 6px 8px;
  border-radius: 8px;
}

.nav-dropdown-menu a:hover {
  background: rgba(27, 78, 160, 0.12);
  color: var(--accent);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.section-roll {
  margin-top: 10px;
  border-top: 1px solid rgba(240, 195, 0, 0.35);
  border-bottom: 1px solid rgba(240, 195, 0, 0.2);
  overflow: hidden;
  white-space: nowrap;
  background:
    linear-gradient(90deg, rgba(6, 44, 102, 0.92), rgba(12, 79, 179, 0.65), rgba(6, 44, 102, 0.92));
}

.section-roll-track {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  min-width: max-content;
  animation: section-roll 180s linear infinite;
}

.section-roll-track a {
  color: #f7fbff;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.section-roll-track a:hover {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section-roll-track span {
  color: rgba(245, 202, 45, 0.75);
  font-size: 11px;
}

@keyframes section-roll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.main-nav a {
  padding: 0;
  border: none;
  background: transparent;
  text-decoration: none;
  color: #f2f5ff;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 140ms ease, color 140ms ease;
}

.main-nav > a + a::before {
  content: "/";
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.main-nav a:hover {
  opacity: 1;
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-toggle {
  font-family: var(--mono);
  color: #e8ecf5;
  align-self: center;
  font-size: 12px;
}

.lang-toggle a {
  color: var(--accent-2);
  text-decoration: none;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-social {
  margin-left: auto;
}

.social-icon {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f2f5ff;
  opacity: 0.9;
  transition: transform 140ms ease, opacity 140ms ease, border-color 140ms ease, color 140ms ease;
}

.social-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon:hover {
  opacity: 1;
  color: var(--accent-2);
  border-color: rgba(240, 195, 0, 0.75);
  transform: translateY(-1px);
  text-decoration: none;
}

.footer-social .social-icon {
  border-color: var(--border);
  color: var(--ink);
  background: #fff;
}

.footer-social .social-icon:hover {
  color: var(--accent);
  border-color: rgba(27, 78, 160, 0.45);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: min(1420px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 14px 94px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.module {
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
}

.module-title {
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.module ul {
  list-style: square;
  padding-left: 18px;
  margin: 0;
}

.score-row {
  padding: 6px 0;
  border-bottom: 1px dashed var(--steel);
}

.main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  padding: 22px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.search {
  display: flex;
  gap: 8px;
  flex: 1 1 320px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(11, 18, 32, 0.08);
}

.search input {
  border: none;
  outline: none;
  font-family: var(--sans);
  flex: 1 1 auto;
  font-size: 16px;
}

.search button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--mono);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.chip-link {
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: 0 8px 16px rgba(11, 18, 32, 0.08);
  white-space: nowrap;
}

.modern-hero h1 a {
  color: inherit;
  text-decoration: none;
}

.hero-left {
  min-width: 0;
}

.hero-right {
  min-width: 0;
  display: block;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--steel);
}

.meta-row .dot {
  font-size: 10px;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.panel {
  border: 1px solid var(--border);
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.panel-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.panel.wide {
  min-height: 100%;
}

.mini-row {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.mini-row a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.mini-row a:first-child {
  display: inline-block;
  line-height: 1.35;
}

.mini-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  margin-top: 4px;
}

.mini-cta {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card.compact .card-summary {
  font-size: 12px;
}

.hero:before {
  content: "";
  position: absolute;
  inset: -40px;
  background: linear-gradient(135deg, rgba(27, 78, 160, 0.08), rgba(240, 195, 0, 0.15));
  transform: rotate(-2deg);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent-3);
}

.hero-image-link {
  display: block;
  margin: 14px 0 0;
  max-width: 560px;
}

.hero-image {
  display: block;
  width: 100%;
  height: clamp(120px, 16vw, 180px);
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  margin: 10px 0;
  font-size: clamp(26px, 4vw, 36px);
  font-family: var(--display);
  line-height: 1.14;
}

.hero p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.btn {
  padding: 9px 14px;
  border: 1px solid rgba(10, 26, 64, 0.15);
  background: linear-gradient(180deg, #2b62bd, #1b4ea0);
  color: #fff;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(10, 28, 71, 0.25);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(10, 28, 71, 0.26);
  filter: saturate(1.08);
}

.btn:active {
  transform: translateY(0);
}

.btn.alt {
  background: linear-gradient(180deg, #ffd84a, #f0c300);
  color: #0b1a3a;
}

.ticker {
  border: 1px solid var(--border);
  background: #f7f9ff;
  padding: 10px;
  font-family: var(--mono);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  width: 100%;
  min-height: 100%;
}

.ticker-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.ticker-item {
  padding: 4px 0;
  border-bottom: 1px dotted var(--steel);
}

.ticker-item:last-child {
  border-bottom: none;
}

.ticker-item a {
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}

.ticker-item a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(11, 18, 32, 0.11);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(240, 195, 0, 0.18);
}

.card-tag {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--accent);
  color: #fff;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
}

.card-title a {
  color: var(--ink);
  text-decoration: none;
  font-weight: bold;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.card-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.card-summary {
  font-family: var(--mono);
  font-size: 12px;
  color: #333;
}

.card-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-cta {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 8px 16px rgba(27, 78, 160, 0.28);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 78, 160, 0.35);
  box-shadow: 0 20px 34px rgba(11, 18, 32, 0.18);
}

.card:active {
  transform: translateY(-1px);
}

.page-title {
  font-family: var(--display);
  font-size: clamp(30px, 4.5vw, 40px);
  line-height: 1.1;
  margin: 4px 0 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.article {
  border: 1px solid var(--border);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-strong);
  border-radius: var(--radius-lg);
  min-width: 0;
}

.article-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 999px;
}

.article-title {
  margin: 8px 0;
  font-size: clamp(28px, 4.6vw, 38px);
  line-height: 1.12;
}

.article-subhead {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--steel);
  margin-bottom: 10px;
}

.article-hero {
  margin: 0 0 12px;
}

.article-hero img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  max-height: 520px;
  object-fit: cover;
}

.article-hero figcaption {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
}

.article-hero figcaption a {
  color: var(--accent);
}

.article-byline {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--steel);
  margin-bottom: 12px;
}

.article-byline a {
  color: var(--accent);
  font-weight: 600;
}

.article-summary {
  font-family: var(--sans);
  background: var(--panel);
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.article-body h3 {
  margin: 26px 0 10px;
  font-size: clamp(20px, 3vw, 24px);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.article-body ul {
  padding-left: 20px;
  margin: 8px 0 14px;
}

.article-body {
  margin-top: 12px;
  line-height: 1.8;
  font-size: clamp(17px, 2.6vw, 20px);
  max-width: 72ch;
  overflow-wrap: anywhere;
}

.article-body a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.article-body p {
  margin: 0 0 18px 0;
}

.article-body h2 {
  margin: 30px 0 12px;
  font-size: clamp(22px, 3.4vw, 28px);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.article-body h4 {
  margin: 22px 0 8px;
  font-size: clamp(16px, 2.3vw, 18px);
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.article-body blockquote {
  margin: 22px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(16,21,32,0.6);
  color: var(--ink);
  font-style: italic;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 26px 0;
}

.article-source {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
}

.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1420px;
  margin: 0 auto;
}

.admin-topbar {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-title {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
}

.admin-subtitle {
  margin: 8px 0 0;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 12px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.admin-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  box-shadow: var(--shadow-soft);
}

.admin-stat span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 24px;
}

.admin-grid,
.admin-edit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border-radius: 10px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 11px 10px;
  vertical-align: top;
}

.admin-table th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--steel);
}

.admin-table a {
  color: var(--ink);
  text-decoration: none;
}

.admin-table tbody tr:nth-child(odd) {
  background: rgba(244, 247, 251, 0.6);
}

.admin-table tbody tr:hover {
  background: rgba(27, 78, 160, 0.08);
}

.status-pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--paper);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-btn {
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 9px;
}

.admin-btn.alt {
  background: var(--accent-2);
  color: #0b1a3a;
}

.queue-actions {
  min-width: 260px;
}

.queue-actions .admin-btn {
  min-width: 88px;
}

.admin-form label {
  display: block;
  margin: 12px 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  text-transform: uppercase;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--sans);
  background: #fff;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.search input:focus {
  border-color: rgba(27, 78, 160, 0.45);
  box-shadow: 0 0 0 3px rgba(27, 78, 160, 0.14);
  outline: none;
}

.admin-save {
  margin-top: 16px;
}

.admin-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  line-height: 1.6;
  background: linear-gradient(180deg, #ffffff, #f8fafd);
}

.admin-preview h2 {
  margin: 0 0 8px;
  font-family: var(--display);
}

.admin-generation-grid {
  align-items: start;
}

.admin-block-subtitle {
  margin-top: 0;
  margin-bottom: 12px;
}

.admin-inline-note {
  margin: 6px 0 10px;
}

.admin-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-category-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background: #f8fbff;
}

.admin-category-item label {
  margin: 0 0 4px;
}

.run-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.run-title {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.1;
}

.run-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-run-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.run-count-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px;
}

.run-count-item span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--steel);
  text-transform: uppercase;
}

.run-count-item strong {
  font-size: 18px;
}

.admin-run-steps {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.run-step {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.run-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.run-step-head strong {
  text-transform: capitalize;
  font-family: var(--mono);
  letter-spacing: 0.5px;
}

.run-step-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
}

.run-events-wrap {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.run-events {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
}

.run-event {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}

.run-list {
  display: grid;
  gap: 8px;
}

.run-list-item {
  display: grid;
  grid-template-columns: 80px 120px 120px 1fr;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #fff;
}

.run-list-item:hover {
  border-color: rgba(27, 78, 160, 0.4);
  background: #f8fbff;
}

.run-list-item.is-active {
  border-color: rgba(27, 78, 160, 0.5);
  background: #edf3ff;
}

.queue-headline {
  margin-top: 4px;
  color: var(--steel);
  font-size: 12px;
}

.footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #fffdf7, #f5f5ef);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.footer-links a {
  margin-left: 0;
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 980px) {
  .content {
    grid-template-columns: 1fr;
    padding: 14px 10px 98px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .three-col {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 14px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .admin-edit-grid {
    grid-template-columns: 1fr;
  }
  .admin-topbar {
    padding: 16px;
  }
  .admin-title {
    font-size: 26px;
  }
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-run-counts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .run-list-item {
    grid-template-columns: 70px 100px 90px 1fr;
    font-size: 10px;
  }
  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
}

@media (min-width: 1120px) {
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-edit-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px;
  }
  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .brand-sub,
  .brand-tag {
    display: none;
  }
  .main-nav {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    overflow: hidden;
    padding-bottom: 2px;
    width: 100%;
  }
  .main-nav a {
    font-size: 11px;
    padding: 0;
  }
  .main-nav a + a::before {
    content: none;
  }
  .main-nav .nav-optional {
    display: none;
  }
  .nav-social {
    margin-left: 0;
  }
  .section-roll {
    margin-top: 8px;
    margin-left: -10px;
    margin-right: -10px;
  }
  .section-roll-track {
    padding: 7px 0;
    animation-duration: 180s;
  }
  .section-roll-track a {
    font-size: 10px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .search {
    flex: 1 1 100%;
  }
  .search button {
    min-width: 88px;
  }
  .article-title {
    font-size: 32px;
  }
  .article-subhead {
    font-size: 17px;
  }
  .article-body {
    font-size: 18px;
  }
  .admin-shell {
    gap: 14px;
  }
  .admin-topbar {
    padding: 12px;
    border-radius: 12px;
  }
  .admin-title {
    font-size: 24px;
  }
  .admin-subtitle {
    margin-top: 4px;
    font-size: 11px;
  }
  .admin-stats {
    gap: 8px;
  }
  .admin-stat {
    padding: 10px;
  }
  .admin-category-grid {
    grid-template-columns: 1fr;
  }
  .admin-run-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .run-head {
    flex-direction: column;
    gap: 6px;
  }
  .run-event {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .run-list-item {
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
  }
  .admin-stat strong {
    font-size: 20px;
  }
  .admin-panel {
    padding: 12px;
    border-radius: 12px;
  }
  .admin-table-wrap {
    overflow: visible;
  }
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table thead {
    display: none;
  }
  .admin-table tr {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
    background: #fff;
    box-shadow: 0 8px 14px rgba(11, 18, 32, 0.06);
  }
  .admin-table td {
    border: none;
    padding: 4px 2px;
  }
  .admin-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 10px;
    color: var(--steel);
    margin-bottom: 1px;
  }
  .admin-actions {
    gap: 6px;
  }
  .admin-actions form {
    flex: 1 1 calc(50% - 6px);
  }
  .admin-btn {
    width: 100%;
    text-align: center;
    padding: 8px 10px;
  }
  .admin-form input,
  .admin-form select,
  .admin-form textarea {
    font-size: 16px;
  }
  .admin-save {
    width: 100%;
    text-align: center;
  }
  .footer {
    justify-content: flex-start;
    padding: 12px 10px;
  }
  .card {
    border-width: 1.5px;
  }
  .card-cta {
    padding: 7px 11px;
  }
  .lang-toggle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-roll-track {
    animation: none;
  }
}

/* 2026 visual refresh */
:root {
  --bg: #eef3fb;
  --ink: #0a162d;
  --accent: #0c4fb3;
  --accent-2: #f5ca2d;
  --accent-3: #062c66;
  --paper: #f8fbff;
  --steel: #5f6f89;
  --border: rgba(10, 22, 45, 0.14);
  --shadow-soft: 0 16px 30px rgba(12, 22, 43, 0.1);
  --shadow-strong: 0 26px 60px rgba(8, 18, 39, 0.14);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(12, 79, 179, 0.14), transparent 34%),
    radial-gradient(circle at 94% 10%, rgba(245, 202, 45, 0.18), transparent 30%),
    linear-gradient(180deg, #f3f8ff 0%, #f5f2e9 48%, #eef4ff 100%);
}

.site-header {
  border-bottom-color: rgba(245, 202, 45, 0.55);
  background: linear-gradient(120deg, rgba(5, 25, 70, 0.95), rgba(12, 55, 125, 0.92));
  box-shadow: 0 20px 36px rgba(4, 10, 26, 0.28);
}

.site-header-inner,
.content,
.footer {
  width: min(1280px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.brand-top {
  letter-spacing: 2px;
}

.main-nav {
  gap: 12px;
  align-items: center;
}

.main-nav > a {
  font-size: 11px;
  letter-spacing: 1px;
}

.main-nav > a:hover {
  text-decoration-thickness: 2px;
}

.social-links {
  gap: 10px;
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
}

.social-icon svg {
  width: 15px;
  height: 15px;
}

.content {
  padding-top: 24px;
  padding-bottom: 72px;
}

.topbar {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  border-radius: 16px;
  padding: 12px;
}

.search {
  border-radius: 999px;
  padding: 6px;
  border-color: rgba(12, 79, 179, 0.2);
  box-shadow: none;
}

.search input {
  padding-left: 8px;
}

.search button {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 22px;
  padding: 24px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.96)),
    radial-gradient(circle at 90% 20%, rgba(245, 202, 45, 0.13), transparent 34%);
}

.hero:before {
  inset: -30px;
  transform: rotate(-1.2deg);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 2.6px;
}

.hero-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(6, 44, 102, 0.5);
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  max-width: 20ch;
}

.hero p {
  max-width: 64ch;
  color: #22314b;
}

.hero-actions {
  margin-top: 12px;
}

.hero-image-link {
  margin-top: 16px;
  max-width: 480px;
}

.hero-image {
  height: clamp(110px, 14vw, 160px);
  border-radius: 12px;
}

.hero-right {
  display: flex;
}

.ticker {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #fefefe 0%, #f4f8ff 100%);
  border-color: rgba(12, 79, 179, 0.24);
}

.ticker-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent-3);
  margin-bottom: 8px;
}

.ticker-item {
  padding: 7px 0;
}

.ticker-item a {
  font-size: 13px;
  font-family: var(--sans);
}

.three-col {
  gap: 16px;
}

.panel {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.panel-title {
  letter-spacing: 1.2px;
}

.card {
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.card-title a {
  font-size: 18px;
}

.card-summary {
  line-height: 1.5;
  color: #2b3b56;
}

.article {
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.article-title {
  font-family: var(--display);
  letter-spacing: -0.2px;
}

.article-byline {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.article-summary {
  border-radius: 14px;
}

.article-body {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.85;
}

.article-body p {
  text-wrap: pretty;
}

.footer {
  border-top: 1px solid rgba(10, 22, 45, 0.12);
  background: transparent;
  padding-top: 12px;
  padding-bottom: 26px;
}

.footer-links {
  gap: 10px 14px;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .topbar {
    padding: 10px;
  }

  .hero {
    padding: 16px;
    gap: 14px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-image-link {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .content {
    padding-bottom: 88px;
  }

  .main-nav {
    gap: 8px 10px;
  }

  .main-nav > a {
    font-size: 10px;
  }

  .hero-image {
    height: 120px;
  }

  .footer {
    padding-bottom: 16px;
  }
}

/* ESPN Bosnia mode */
:root {
  --accent: #0057b8;
  --accent-2: #ffd23f;
  --accent-3: #003a7a;
  --display: "Oswald", sans-serif;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 210, 63, 0.16), transparent 26%),
    linear-gradient(180deg, #0a56b3 0%, #084a9c 45%, #063d82 100%);
}

.site-header {
  background:
    linear-gradient(90deg, #003a7a 0%, #0057b8 52%, #0a6fdb 100%);
  border-bottom: 3px solid var(--accent-2);
}

.brand-top {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 2.6px;
}

.main-nav > a {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
}

.main-nav > a:hover {
  color: var(--accent-2);
}

.social-icon:hover {
  color: #0a1a33;
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.topbar {
  border-width: 2px;
  border-color: rgba(0, 87, 184, 0.28);
}

.hero {
  border-width: 2px;
  border-color: rgba(0, 87, 184, 0.28);
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.4), transparent 34%),
    linear-gradient(145deg, #ffe680 0%, #ffd23f 48%, #f2bf21 100%);
}

.hero-label {
  font-family: var(--display);
  color: var(--accent-3);
}

.hero h1 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.meta-row {
  font-weight: 600;
}

.btn {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-width: 2px;
  border-color: #0a4b9e;
  background: linear-gradient(180deg, #0d6fe0, #0057b8);
}

.btn.alt {
  border-color: #e7bc2b;
  background: linear-gradient(180deg, #ffe070, #ffd23f);
}

.ticker {
  border-width: 2px;
  border-color: rgba(0, 87, 184, 0.34);
  background:
    linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
}

.ticker-title {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1;
  color: var(--accent-3);
  border-bottom: 2px solid rgba(0, 87, 184, 0.2);
  padding-bottom: 8px;
}

.panel-title {
  display: inline-block;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.8px;
  color: #fff;
  background: linear-gradient(90deg, #003a7a, #0057b8);
  padding: 5px 10px;
  border-radius: 999px;
}

.card,
.panel,
.article {
  border-width: 2px;
  border-color: rgba(0, 87, 184, 0.22);
}

.card:after {
  content: none;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow: 0 14px 26px rgba(6, 20, 46, 0.16);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 87, 184, 0.42);
  box-shadow: 0 22px 36px rgba(6, 20, 46, 0.2);
}

.card-title a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.card-cta {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #0d6fe0, #0057b8);
}

.article .chip {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.6px;
  color: #fff;
  background: linear-gradient(90deg, #003a7a, #0057b8);
  border-color: #0b5fc2;
}

.footer {
  border-top: 2px solid rgba(0, 87, 184, 0.22);
  color: #f3f7ff;
}

.footer-links a {
  color: #f3f7ff;
}

.footer-links a:hover {
  color: var(--accent-2);
}

.category-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-head {
  border: 2px solid rgba(0, 87, 184, 0.28);
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: linear-gradient(140deg, #fefefe 0%, #f1f7ff 60%, #e7f1ff 100%);
  box-shadow: 0 14px 28px rgba(6, 20, 46, 0.14);
}

.category-kicker {
  display: inline-block;
  font-family: var(--display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(90deg, #003a7a, #0057b8);
  border-radius: 999px;
  padding: 4px 10px;
}

.category-title {
  margin: 10px 0 8px;
  border-bottom: none;
  padding-bottom: 0;
}

.category-subtitle {
  margin: 0;
  max-width: 62ch;
  color: #22314b;
  font-size: 15px;
}

.category-stats {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #2f4770;
}

.category-grid {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.category-card .card-summary {
  min-height: 66px;
}

.category-empty {
  border: 2px dashed rgba(0, 87, 184, 0.35);
  border-radius: 18px;
  padding: 28px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
}

.category-empty h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  text-transform: uppercase;
}

.category-empty p {
  margin: 0 0 14px;
  color: #22314b;
}

.pagination {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 2px solid rgba(0, 87, 184, 0.25);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.84);
}

.pagination-link {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #0d6fe0, #0057b8);
  border: 1px solid #0a4b9e;
  border-radius: 999px;
  padding: 7px 12px;
}

.pagination-link:hover {
  color: #fff;
  filter: saturate(1.1);
}

.pagination-link.is-disabled {
  background: #cedcf2;
  border-color: #b4c8e8;
  color: #456089;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-page {
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 14px;
  text-decoration: none;
  color: #18407f;
  border: 1px solid rgba(0, 87, 184, 0.32);
  background: #fff;
}

.pagination-page:hover {
  border-color: rgba(0, 87, 184, 0.56);
  color: #0f3770;
}

.pagination-page.is-active {
  color: #0a1a33;
  background: var(--accent-2);
  border-color: #e7bc2b;
}

@media (max-width: 640px) {
  .category-head {
    padding: 14px;
  }

  .category-subtitle {
    font-size: 14px;
  }

  .category-card .card-summary {
    min-height: 0;
  }

  .pagination {
    padding: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════
   ADMIN — DARK EDITORIAL NEWSROOM
   ═══════════════════════════════════════════════ */

.admin-body {
  --admin-bg:          #0b0d13;
  --admin-surface:     #101520;
  --admin-panel:       #161d2c;
  --admin-border:      rgba(255,255,255,0.07);
  --admin-border-mid:  rgba(255,255,255,0.13);
  --admin-text:        #c8d3e8;
  --admin-text-hi:     #edf1fb;
  --admin-muted:       #4a5872;
  --admin-accent:      #e8a225;
  --admin-accent-soft: rgba(232,162,37,0.13);
  --admin-green:       #22c55e;
  --admin-shadow:      0 6px 28px rgba(0,0,0,0.45);
  --admin-blue:        #e8a225;
  --admin-blue-soft:   rgba(232,162,37,0.13);
  background: var(--admin-bg);
  font-family: "DM Sans", "Inter", sans-serif;
  color: var(--admin-text);
}


.admin-body .bg-noise,
.admin-body .site-header,
.admin-body .footer { display: none; }

.admin-body .content,
.admin-body .main { padding: 0; }

/* ─── Shell ─── */
.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

/* ─── Mobile top bar ─── */
.admin-mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  z-index: 300;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.admin-mobile-brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--admin-text-hi);
}

.admin-hamburger {
  background: none;
  border: none;
  color: var(--admin-text);
  padding: 8px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.15s;
}

.admin-hamburger:hover { background: rgba(255,255,255,0.07); }

.admin-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ─── Drawer backdrop ─── */
.admin-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 299;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.admin-drawer-backdrop.is-visible { display: block; }

/* ─── Sidebar ─── */
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 14px;
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.admin-brand { display: flex; flex-direction: column; gap: 4px; padding: 0 6px; }

.admin-brand-mark {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--admin-text-hi);
}

.admin-brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--admin-muted);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.admin-nav-item {
  text-decoration: none;
  color: var(--admin-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}

.admin-nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--admin-text);
}

.admin-nav-item.is-active {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  font-weight: 600;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--admin-muted);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--admin-green);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
  flex-shrink: 0;
}

/* ─── Main content area ─── */
.admin-main {
  padding: 28px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* ─── Topbar ─── */
.admin-topbar-new {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--admin-accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-title {
  font-family: "Syne", sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  color: var(--admin-text-hi);
  line-height: 1.2;
}

.admin-subtitle {
  margin: 6px 0 0;
  color: var(--admin-muted);
  font-size: 14px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* ─── Buttons ─── */
.admin-primary {
  background: var(--admin-accent);
  color: #0b0d13;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.admin-primary:hover { opacity: 0.85; }

.admin-secondary {
  background: transparent;
  color: var(--admin-text);
  border-radius: 10px;
  padding: 9px 18px;
  border: 1px solid var(--admin-border-mid);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.admin-secondary:hover {
  background: rgba(255,255,255,0.06);
  color: var(--admin-text-hi);
}

/* ─── Summary strip ─── */
.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.summary-card {
  background: var(--admin-panel);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-card span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--admin-muted);
  font-weight: 600;
}

.summary-card strong {
  font-family: "Syne", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--admin-text-hi);
  line-height: 1.1;
}

.summary-attn {
  background: rgba(232,162,37,0.08);
  border-color: rgba(232,162,37,0.22);
}

.summary-attn strong { color: var(--admin-accent); }

/* ─── Panel card ─── */
.admin-panel {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: none;
}

.panel-title {
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--admin-text-hi);
  margin-bottom: 16px;
}

/* ─── Kanban board ─── */
.admin-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.admin-flow-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.flow-card {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow-card span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--admin-muted);
  font-weight: 600;
}

.flow-card strong {
  font-family: "Syne", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--admin-text-hi);
  line-height: 1.1;
}

.board-column {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-top: 2px solid var(--admin-border);
  border-radius: 14px;
  padding: 12px;
  min-height: 200px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.board-head-actions {
  display: inline-flex;
  align-items: center;
}

.btn-compact {
  padding: 6px 10px;
  font-size: 11px;
}

.board-body.is-collapsible {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.board-column.is-collapsed .board-body.is-collapsible {
  max-height: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}
.board-column[data-status="draft"]       { border-top-color: #4a5872; }
.board-column[data-status="research"]    { border-top-color: #a78bfa; }
.board-column[data-status="writing"]     { border-top-color: #60a5fa; }
.board-column[data-status="needs_review"]{ border-top-color: #fbbf24; }
.board-column[data-status="approved"]    { border-top-color: #4ade80; }
.board-column[data-status="published"]   { border-top-color: #34d399; }

.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.board-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-text-hi);
}

.board-head p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--admin-muted);
}

.count-pill {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.board-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.article-card {
  background: rgba(255,255,255,0.04);
  border-radius: 11px;
  padding: 11px;
  border: 1px solid var(--admin-border);
  text-decoration: none;
  color: var(--admin-text);
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background 0.15s, border-color 0.15s;
}

.article-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--admin-border-mid);
}

.card-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--admin-text-hi);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 11px;
  color: var(--admin-muted);
  flex-wrap: wrap;
}

/* ─── Badges ─── */
.badge {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.badge[data-category="sports"]   { background: rgba(14,165,233,0.14); color: #38bdf8; }
.badge[data-category="culture"]  { background: rgba(244,114,182,0.14); color: #f472b6; }
.badge[data-category="diaspora"] { background: rgba(34,197,94,0.14);  color: #4ade80; }
.badge[data-category="politics"] { background: rgba(248,113,113,0.14); color: #f87171; }
.badge[data-category="business"] { background: rgba(234,179,8,0.14);  color: #fbbf24; }
.badge[data-category="history"]  { background: rgba(129,140,248,0.14); color: #a5b4fc; }

/* ─── Status pills ─── */
.status-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.12);
}

.status-draft     { background: rgba(100,116,139,0.28); color: #cbd5e1; }
.status-research  { background: rgba(147,51,234,0.28);  color: #e9d5ff; }
.status-writing   { background: rgba(59,130,246,0.28);  color: #dbeafe; }
.status-review    { background: rgba(250,204,21,0.28);  color: #fef3c7; }
.status-ready     { background: rgba(34,197,94,0.28);   color: #dcfce7; }
.status-published { background: rgba(16,185,129,0.28);  color: #d1fae5; }

.board-empty {
  font-size: 12px;
  color: var(--admin-muted);
  padding: 6px 2px;
}

/* ─── Admin forms ─── */
.admin-body .admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-body .admin-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--admin-muted);
  margin-bottom: 5px;
}

.admin-body .admin-form input,
.admin-body .admin-form textarea,
.admin-body .admin-form select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--admin-border-mid);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--admin-text-hi);
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.admin-body .admin-form input:focus,
.admin-body .admin-form textarea:focus,
.admin-body .admin-form select:focus { border-color: var(--admin-accent); }

.admin-body .admin-form select option { background: #161d2c; }

/* ─── Queue table ─── */
.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--admin-muted);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table td a { color: var(--admin-accent); text-decoration: none; }
.admin-table td a:hover { text-decoration: underline; }

.queue-headline {
  font-size: 11px;
  color: var(--admin-muted);
  margin-top: 3px;
}

.queue-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ─── Article edit ─── */
.admin-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-preview {
  font-size: 14px;
  line-height: 1.65;
  color: var(--admin-text);
}

.admin-preview h2 {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  color: var(--admin-text-hi);
  margin: 0 0 8px;
}

.admin-body .admin-preview {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 16px;
}

/* ─── Generation UI ─── */
.admin-generation { margin-bottom: 4px; }

.gen-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.gen-form-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gen-form-panel h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-text-hi);
}

.gen-form-panel form { display: flex; flex-direction: column; gap: 12px; }

.gen-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gen-total-row label { font-size: 13px; font-weight: 600; color: var(--admin-text); }

.gen-total-row input {
  width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--admin-border-mid);
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  color: var(--admin-text-hi);
  outline: none;
}

.gen-category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.gen-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid var(--admin-border);
}

.gen-cat-row label { font-size: 12px; color: var(--admin-text); }

.gen-cat-row input {
  width: 52px;
  padding: 5px 8px;
  border: 1px solid var(--admin-border-mid);
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  color: var(--admin-text-hi);
  outline: none;
}

.gen-hint { font-size: 11px; color: var(--admin-muted); margin: 0; }

.gen-status-panel { display: flex; flex-direction: column; gap: 10px; }

.gen-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gen-status-header h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-text-hi);
}

.gen-status-header select {
  padding: 7px 12px;
  border: 1px solid var(--admin-border-mid);
  border-radius: 10px;
  font-size: 12px;
  background: var(--admin-panel);
  color: var(--admin-text);
  max-width: 250px;
  outline: none;
}

.gen-empty { font-size: 13px; color: var(--admin-muted); padding: 16px 0; }

.run-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--admin-text);
  padding: 10px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.run-status-queued    { background: rgba(148,163,184,0.15); color: #94a3b8; }
.run-status-running   { background: rgba(59,130,246,0.2);   color: #60a5fa; }
.run-status-completed { background: rgba(34,197,94,0.18);   color: #4ade80; }
.run-status-failed    { background: rgba(239,68,68,0.18);   color: #f87171; }
.run-status-cancelled { background: rgba(148,163,184,0.18); color: #cbd5f5; }

.admin-btn.danger {
  background: rgba(239,68,68,0.16);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.4);
}

.run-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.run-step {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.run-step:hover {
  border-color: var(--admin-border-mid);
  transform: translateY(-1px);
}

.step-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--admin-muted);
}

.step-status {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
  font-weight: 700;
  position: relative;
}

.step-pending   { background: rgba(148,163,184,0.12); color: #64748b; }
.step-running   { background: rgba(59,130,246,0.18);  color: #60a5fa; }
.step-completed { background: rgba(34,197,94,0.18);   color: #4ade80; }

.step-status.step-running::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid rgba(96,165,250,0.55);
  border-top-color: #60a5fa;
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
  animation: step-spin 0.9s linear infinite;
}

@keyframes step-spin {
  to { transform: rotate(360deg); }
}

.step-progress {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
}

.step-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(96,165,250,0.5), rgba(96,165,250,0.9));
  transition: width 0.2s ease;
}

.step-progress-bar.step-running { width: 55%; }
.step-progress-bar.step-completed { width: 100%; background: linear-gradient(90deg, rgba(74,222,128,0.5), rgba(34,197,94,0.9)); }
.step-progress-bar.step-pending { width: 0%; }

.step-detail { font-size: 10px; color: var(--admin-muted); margin-top: 1px; }

.run-counts {
  display: flex;
  gap: 8px;
  font-size: 12px;
  flex-wrap: wrap;
  color: var(--admin-text);
  margin: 10px 0 12px;
}

.run-counts span {
  padding: 6px 10px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.run-log {
  max-height: 160px;
  overflow-y: auto;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.4;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.log-entry { padding: 1px 4px; border-radius: 3px; }
.log-info    { color: #5a7090; }
.log-warning { color: #fbbf24; background: rgba(250,204,21,0.07); }
.log-error   { color: #f87171; background: rgba(239,68,68,0.07); }

.run-console {
  margin-top: 10px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: rgba(12, 16, 26, 0.75);
  overflow: hidden;
}

.console-title {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-muted);
}

.console-body {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 12px 10px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.console-line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.console-time {
  color: var(--admin-muted);
  font-size: 10px;
}

.console-msg {
  color: var(--admin-text);
}

.console-info { border-left: 2px solid rgba(255,255,255,0.2); }
.console-warning { border-left: 2px solid var(--admin-accent); }
.console-error { border-left: 2px solid #ef4444; }

.console-empty {
  color: var(--admin-muted);
  font-size: 12px;
  padding: 6px 0 8px;
}

.run-error {
  background: rgba(239,68,68,0.09);
  border: 1px solid rgba(239,68,68,0.22);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  color: #f87171;
}

/* ─── Articles split ─── */
.admin-split {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

.admin-article-list {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 200px);
  overflow-y: hidden;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.list-header h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--admin-text-hi);
}

.list-header p { margin: 3px 0 0; font-size: 12px; color: var(--admin-muted); }

.list-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 2px;
}

.article-list-item {
  text-align: left;
  border: 1px solid var(--admin-border);
  border-radius: 11px;
  padding: 11px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
}

.article-list-item:hover { background: rgba(255,255,255,0.06); }

.article-list-item.is-active {
  border-color: var(--admin-accent);
  background: var(--admin-accent-soft);
}

.list-title {
  font-weight: 600;
  line-height: 1.3;
  font-size: 13px;
  color: var(--admin-text-hi);
}

.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--admin-muted);
}

.admin-article-preview {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.more-actions { position: relative; }
.more-actions summary { list-style: none; cursor: pointer; }
.more-actions summary::-webkit-details-marker { display: none; }

.more-actions-menu {
  position: absolute;
  right: 0;
  top: 44px;
  background: #1e2638;
  border: 1px solid var(--admin-border-mid);
  border-radius: 12px;
  min-width: 148px;
  box-shadow: var(--admin-shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 20;
}

.more-actions-menu .menu-item {
  text-decoration: none;
  background: transparent;
  border: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--admin-text);
  font-size: 13px;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  width: 100%;
}

.more-actions-menu .menu-item:hover {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
}

.preview-shell { display: flex; flex-direction: column; gap: 16px; }

.preview-header h2 {
  margin: 6px 0 0;
  font-size: 20px;
  color: var(--admin-text-hi);
  font-family: "Syne", sans-serif;
  font-weight: 700;
}

.preview-subhead { color: var(--admin-muted); margin: 6px 0 0; font-size: 14px; }
.preview-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.preview-hero {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-muted);
  font-size: 13px;
}

.preview-hero img { width: 100%; height: auto; display: block; }
.preview-hero.is-empty { border: 1px dashed var(--admin-border-mid); }

.preview-content { line-height: 1.65; color: var(--admin-text); font-size: 14px; }

.preview-meta-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  border-top: 1px solid var(--admin-border);
  padding-top: 14px;
}

.preview-meta-panel h4 {
  margin: 0 0 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--admin-muted);
  font-weight: 700;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  font-size: 13px;
}

.meta-grid span {
  color: var(--admin-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.meta-grid strong {
  display: block;
  margin-top: 3px;
  font-weight: 600;
  color: var(--admin-text-hi);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-chip {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.tag-empty { font-size: 12px; color: var(--admin-muted); }

/* ─── Login ─── */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-wrap .admin-panel {
  width: 100%;
  max-width: 400px;
  padding: 36px 40px;
  border-radius: 20px;
}

.admin-login-wrap .admin-brand-mark {
  font-size: 22px;
  margin-bottom: 8px;
}

/* ═══════════════════════
   RESPONSIVE
   ═══════════════════════ */

@media (max-width: 1100px) {
  .admin-split { grid-template-columns: 1fr; }
  .admin-article-list { max-height: none; }
  .gen-grid { grid-template-columns: 1fr; }
  .admin-edit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .admin-main { padding: 20px 18px 40px; gap: 16px; }
  .admin-summary { grid-template-columns: repeat(3, 1fr); }
  .summary-card strong { font-size: 22px; }
  .admin-board { gap: 8px; }
  .board-column { padding: 10px; }
}

@media (max-width: 768px) {
  .admin-mobile-bar { display: flex; }

  .admin-shell {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .admin-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 275px;
    height: 100vh;
    z-index: 301;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 68px;
    border-right-color: var(--admin-border-mid);
  }

  .admin-sidebar.is-open { transform: translateX(0); }

  .admin-main { padding: 16px 14px 64px; gap: 16px; }

  .admin-topbar-new { flex-direction: column; gap: 14px; }

  .admin-actions { width: 100%; gap: 8px; }
  .admin-actions .btn,
  .admin-actions button { flex: 1; justify-content: center; text-align: center; }

  .admin-title { font-size: 22px; }

  .admin-summary { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .summary-card { padding: 14px; }
  .summary-card strong { font-size: 26px; }

  .admin-board {
    grid-template-columns: repeat(6, 83vw);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 16px;
  }

  .board-column { scroll-snap-align: start; min-height: 260px; min-width: 0; }

  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3),
  .admin-table th:nth-child(5),
  .admin-table td:nth-child(5) { display: none; }

  .queue-actions { flex-direction: column; }
  .queue-actions .btn { width: 100%; text-align: center; }

  .run-steps { flex-direction: column; }
  .admin-split { grid-template-columns: 1fr; }
  .gen-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .admin-summary { grid-template-columns: repeat(2, 1fr); }
  .gen-category-grid { grid-template-columns: 1fr; }
  .admin-main { padding: 14px 12px 64px; }

  .public-body .content { padding: 16px 0 64px; }
  .public-body .article {
    padding: 10px 0;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
}

/* ─── PUBLIC — ADMIN THEME ─── */
.public-body {
  --bg: #0b0d13;
  --ink: #e4ebf6;
  --accent: #e8a225;
  --accent-2: #e8a225;
  --accent-3: #101520;
  --paper: #101520;
  --steel: #7f8ba4;
  --panel: #161d2c;
  --border: rgba(255,255,255,0.08);
  --shadow: rgba(0,0,0,0.45);
  --shadow-soft: 0 10px 24px rgba(0,0,0,0.35);
  --shadow-strong: 0 18px 34px rgba(0,0,0,0.45);
  --accent-soft: rgba(232,162,37,0.13);
  background: var(--bg);
  color: var(--ink);
}

.public-body .bg-noise {
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

.public-body .admin-mobile-bar,
.public-body .admin-drawer-backdrop {
  display: none;
}

.public-body .site-header {
  background: var(--accent-3);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
}

.public-body .brand-top { color: var(--accent); }
.public-body .brand-sub,
.public-body .brand-tag { color: var(--steel); }

.public-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.public-body .main-nav a {
  color: var(--ink);
  opacity: 0.85;
}

.public-body .main-nav > a + a::before { color: rgba(255,255,255,0.28); }
.public-body .main-nav a:hover { color: var(--accent); }
.public-body .lang-toggle { color: var(--steel); }
.public-body .lang-toggle a { color: var(--accent); }

.public-body .section-roll {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(6, 44, 102, 0.92), rgba(12, 79, 179, 0.65), rgba(6, 44, 102, 0.92));
}

.public-body .section-roll-track a { color: #f7fbff; }
.public-body .section-roll-track a:hover { color: var(--accent-2); }

.public-body .nav-dropdown-toggle {
  color: var(--ink);
}

.public-body .nav-dropdown-menu {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
}

.public-body .nav-dropdown-menu a:hover {
  background: var(--accent-soft);
}

@media (max-width: 900px) {
  .main-nav {
    overflow: visible;
    position: relative;
    flex-wrap: wrap;
  }

  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-menu {
    position: fixed;
    top: 74px;
    left: 14px;
    right: 14px;
    width: auto;
    min-width: 0;
    z-index: 120;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: flex;
  }
}

.public-body .hero,
.public-body .ticker,
.public-body .card,
.public-body .article,
.public-body .category-shell,
.public-body .category-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.public-body .article {
  padding: 12px 14px;
}

.public-body .article-body {
  max-width: 80ch;
}

.public-body .card:after { background: var(--accent-soft); }

.public-body .category-head {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.public-body .category-kicker {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border);
}

.public-body .category-title { color: var(--accent); }

.public-body .panel {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.public-body .panel-title { color: var(--accent); }

.public-body .mini-row { border-bottom: 1px dashed var(--border); }
.public-body .mini-row a { color: var(--ink); }
.public-body .mini-meta { color: var(--steel); }
.public-body .mini-cta { color: var(--accent); }

.public-body .topbar { gap: 14px; }
.public-body .search {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.public-body .search input {
  background: transparent;
  color: var(--ink);
}

.public-body .search input::placeholder {
  color: var(--steel);
}

.public-body .search input:focus {
  border-color: rgba(232,162,37,0.6);
  box-shadow: 0 0 0 3px rgba(232,162,37,0.18);
}

.public-body .search button {
  background: var(--accent);
  color: #0b0d13;
  border: 1px solid var(--border);
  box-shadow: none;
}

.public-body .search button:hover {
  filter: brightness(1.05);
}

.public-body .chip-link {
  background: rgba(16,21,32,0.9);
  border: 1px solid var(--border);
  color: var(--ink);
  box-shadow: none;
}

.public-body .chip-link:hover {
  color: var(--accent);
  border-color: rgba(232,162,37,0.5);
}

.public-body .hero-image,
.public-body .article-hero img {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.public-body .hero-label { color: var(--accent); }
.public-body .hero h1 a { color: var(--ink); }
.public-body .hero p { color: #d6dfef; }

.public-body .btn {
  background: var(--accent);
  border: 1px solid var(--border);
  color: #0b0d13;
  box-shadow: var(--shadow-soft);
}

.public-body .btn:hover { filter: brightness(1.05); }

.public-body .btn.alt {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.public-body .chip {
  background: rgba(22,29,44,0.9);
  color: var(--ink);
  border: 1px solid var(--border);
}

.public-body .card-title a,
.public-body .ticker-item a,
.public-body .article-title { color: var(--accent); }

.public-body .article-body h2,
.public-body .article-body h3,
.public-body .article-body h4 { color: var(--accent); }

.public-body .ticker-title { color: var(--ink); }
.public-body .ticker-item { border-bottom: 1px dotted rgba(255,255,255,0.18); }

.public-body .card-summary,
.public-body .card-meta,
.public-body .article-subhead,
.public-body .article-byline,
.public-body .article-hero figcaption,
.public-body .category-subtitle,
.public-body .category-stats { color: var(--steel); }

.public-body .card-cta {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
}

.public-body .article-summary {
  background: rgba(16,21,32,0.9);
  border: 1px solid var(--border);
}

.public-body .article-body a { color: var(--accent); }
.public-body .article-body { color: #d8e2f2; }
.public-body .ticker-item a { color: #d9e2f3; }

.public-body .footer {
  background: #101520;
  border-top: 1px solid var(--border);
  color: var(--steel);
}

.public-body .footer-links a { color: var(--ink); }
.public-body .footer-links a:hover { color: var(--accent); }

.public-body .social-icon {
  color: var(--ink);
  border-color: var(--border);
  background: rgba(16,21,32,0.9);
}

.public-body .social-icon:hover {
  color: var(--accent);
  border-color: rgba(232,162,37,0.55);
}

.public-body .footer-social .social-icon {
  background: rgba(16,21,32,0.95);
  color: var(--ink);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-logo {
  color: var(--accent);
  font-size: 16px;
}

.notfound-shell {
  min-height: calc(70vh - 120px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.notfound-panel {
  width: min(640px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.notfound-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.notfound-title {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 40px);
  margin: 0 0 10px;
  color: var(--accent);
}

.notfound-subtitle {
  color: var(--steel);
  margin: 0 0 18px;
}

.notfound-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   RADIO PAGE
   ═══════════════════════════════════════════════════════════════════ */

.radio-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 120px;
}

/* Hero */
.radio-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.radio-hero-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.radio-hero-title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: var(--ink);
}

.radio-hero-sub {
  font-size: 14px;
  color: var(--steel);
  margin: 6px 0 0;
}

/* Equalizer bars */
.radio-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}

.radio-eq span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.2;
  height: 8px;
  transition: height 200ms ease, opacity 200ms ease;
}

.radio-eq.is-active span {
  opacity: 1;
  animation: radioEq 600ms ease-in-out infinite alternate;
}

.radio-eq.is-active span:nth-child(1) { animation-delay: 0ms; }
.radio-eq.is-active span:nth-child(2) { animation-delay: 150ms; }
.radio-eq.is-active span:nth-child(3) { animation-delay: 80ms; }
.radio-eq.is-active span:nth-child(4) { animation-delay: 220ms; }
.radio-eq.is-active span:nth-child(5) { animation-delay: 50ms; }

@keyframes radioEq {
  0%   { height: 6px; }
  100% { height: 28px; }
}

.radio-eq-hero span { width: 5px; background: var(--accent-2); }
.radio-eq-player span { width: 3px; height: 6px; background: #fff; }
.radio-eq-player.is-active span { background: var(--accent-2); }

@keyframes radioEqPlayer {
  0%   { height: 4px; }
  100% { height: 18px; }
}

.radio-eq-player.is-active span {
  animation-name: radioEqPlayer;
}

/* Station list */
.radio-stations {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-station {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  gap: 0 12px;
  align-items: center;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  color: var(--ink);
  transition: background 140ms ease, box-shadow 140ms ease;
  width: 100%;
}

.radio-station:hover {
  background: var(--panel);
}

.radio-station.is-active {
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

/* Indicator dot */
.radio-station-indicator {
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.radio-station.is-active .radio-dot {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(240, 195, 0, 0.25);
}

/* Station info */
.radio-station-info {
  grid-column: 2;
  min-width: 0;
}

.radio-station-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.radio-station-meta {
  font-size: 12px;
  color: var(--steel);
  margin-top: 1px;
}

.radio-station-desc {
  grid-column: 2;
  font-size: 12.5px;
  color: var(--steel);
  margin-top: 3px;
  line-height: 1.4;
  display: none;
}

.radio-station.is-active .radio-station-desc {
  display: block;
}

/* ── Sticky bottom player ── */
.radio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(95deg, rgba(9, 29, 74, 0.97), rgba(15, 42, 102, 0.95));
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(240, 195, 0, 0.3);
  padding: 0 16px;
  box-shadow: 0 -8px 28px rgba(11, 18, 32, 0.3);
}

.radio-player-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
}

/* Play button */
.radio-play-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, border-color 140ms ease, transform 100ms ease;
}

.radio-play-btn:hover {
  background: rgba(240, 195, 0, 0.15);
  border-color: var(--accent-2);
}

.radio-play-btn:active {
  transform: scale(0.93);
}

.radio-play-btn svg {
  width: 20px;
  height: 20px;
}

.radio-icon-loading {
  animation: radioSpin 1s linear infinite;
}

@keyframes radioSpin {
  to { transform: rotate(360deg); }
}

.radio-player.is-playing .radio-play-btn {
  border-color: var(--accent-2);
  background: rgba(240, 195, 0, 0.12);
}

/* Station info in player */
.radio-player-station {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.radio-player-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-player-genre {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Volume */
.radio-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.radio-vol-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 140ms ease;
}

.radio-vol-btn:hover {
  color: #fff;
}

.radio-vol-btn svg {
  width: 18px;
  height: 18px;
}

.radio-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.radio-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-2);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.radio-vol-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-2);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* LIVE badge */
.radio-player-live {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  animation: radioLivePulse 2s ease-in-out infinite;
}

@keyframes radioLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Mobile responsive ── */
@media (max-width: 600px) {
  .radio-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .radio-eq-hero { align-self: flex-end; }
  .radio-station-desc { display: none !important; }
  .radio-station { padding: 12px 10px; }
  .radio-volume { display: none; }
  .radio-player-inner { gap: 10px; }
  .radio-player-live { display: none; }
}
