﻿:root {
  --green: #f97316;
  --green-dark: #c2410c;
  --lime: #ffedd5;
  --ink: #2b1d13;
  --muted: #7c6a5a;
  --line: #fed7aa;
  --paper: #fff8f1;
  --blue-accent: #1e3a8a;
  --blue-soft: #eef5ff;
  --white: #ffffff;
  --warning: #f4b740;
  --danger: #c7362f;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 8px;
}

.brand-logo-image {
  display: grid;
  place-items: center;
  width: 74px;
  height: 48px;
  padding: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand-logo-image img {
  width: 110%;
  height: 110%;
  object-fit: contain;
}

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

.partner-logo,
.footer-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.partner-logo {
  width: 86px;
  height: 52px;
  padding: 6px;
  box-shadow: 0 10px 24px var(--blue-glow);
}

.partner-logo img,
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--green-dark);
  background: #fff1e6;
}

.mobile-menu-button {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(194, 65, 12, 0.12);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 5px;
  height: 5px;
  margin: 2px 0;
  background: var(--green-dark);
  border-radius: 999px;
}

.live-clock {
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  color: var(--green-dark);
  background: #fff1e6;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: right;
}

.live-clock span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.live-clock strong {
  font-size: 18px;
}

.ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--green-dark);
  overflow: hidden;
}

.ticker strong {
  padding: 6px 10px;
  color: var(--green-dark);
  background: var(--white);
  border-radius: 8px;
  font-size: 13px;
  text-transform: uppercase;
}

.ticker-track {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track span {
  display: inline-block;
  min-width: 100%;
  animation: ticker-scroll var(--ticker-duration, 42s) linear infinite;
  will-change: transform;
}

.ticker-track:hover span {
  animation-play-state: paused;
}

.ticker-track em {
  margin: 0 18px;
  color: rgba(255, 255, 255, 0.5);
  font-style: normal;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: calc(100vh - 81px);
}

.hero,
.media-slider,
.slide {
  min-height: calc(100vh - 81px);
}

.media-slider {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.slide img,
.slide video {
  object-fit: cover;
  object-position: center;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide.is-active .hero-copy {
  animation: rise-in 800ms ease both;
}

.slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(67, 20, 7, 0.86), rgba(194, 65, 12, 0.38) 55%, rgba(249, 115, 22, 0.12));
}

.hero-copy {
  position: absolute;
  left: clamp(22px, 6vw, 84px);
  bottom: clamp(48px, 10vh, 120px);
  width: min(680px, calc(100% - 44px));
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--lime);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.hero-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  background: var(--green-dark);
}

.slider-control {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-control:hover {
  background: var(--green);
}

.slider-control.prev {
  left: 18px;
}

.slider-control.next {
  right: 18px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 7;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.46);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.slider-dots button.is-active {
  width: 28px;
  background: var(--green);
}

.caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 16px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.caption strong,
.caption span {
  display: block;
}

.caption span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.announcements {
  padding: 28px;
  background: var(--white);
  border-left: 1px solid var(--line);
  overflow: auto;
}

.aside-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.announcement-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.announcement {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf5;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.announcement:hover {
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.14);
  transform: translateY(-2px);
}

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

.badge {
  display: inline-flex;
  padding: 5px 9px;
  color: var(--green-dark);
  background: #ffedd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

time {
  color: var(--muted);
  font-size: 13px;
}

.announcement h3 {
  margin-bottom: 8px;
}

.announcement p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.announcement.blast-warning {
  border: 3px solid #dc2626;
  background: #fff1f2;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
}

.announcement.blast-warning h3,
.announcement.blast-warning p,
.announcement.blast-warning time {
  color: #991b1b;
  font-weight: 900;
}

.announcement.blast-warning .badge {
  color: #fff;
  background: #dc2626;
}

.blast-warning-banner {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  margin-bottom: 12px !important;
  color: #b91c1c;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.warning-icon {
  display: inline-block;
  color: #dc2626;
  font-size: 28px;
  line-height: 1;
  transform-origin: center bottom;
  animation: warning-shake 0.8s ease-in-out infinite;
}

@keyframes warning-shake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-12deg) scale(1.12); }
  50% { transform: rotate(0deg) scale(1.2); }
  75% { transform: rotate(12deg) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .warning-icon { animation: none; }
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 28px clamp(20px, 5vw, 56px);
  background: var(--white);
}

.stat strong {
  display: block;
  color: var(--green-dark);
  font-size: 42px;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.ai-section {
  padding: clamp(34px, 5vw, 70px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #ffffff, var(--paper));
}

.ai-panel {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.05fr;
  gap: 18px;
  align-items: stretch;
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(67, 20, 7, 0.08);
}

.ai-copy h2 {
  margin-top: 0;
  color: var(--blue-deep);
}

.ai-copy p,
.ai-response p,
.ai-response small {
  color: var(--muted);
  line-height: 1.55;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ai-tags button {
  padding: 9px 11px;
  color: var(--green-dark);
  background: linear-gradient(90deg, var(--orange-soft), var(--blue-soft));
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.ai-form {
  display: grid;
  gap: 12px;
}

.ai-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.ai-form textarea {
  min-height: 142px;
  resize: vertical;
}

.ai-response {
  padding: 18px;
  background: linear-gradient(180deg, #fffaf5, var(--blue-soft));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ai-response h3 {
  margin: 10px 0;
  color: var(--orange-deep);
}

.ai-response strong {
  color: var(--ink);
}

.ai-response small {
  display: block;
  margin-top: 12px;
  font-size: 12px;
}

.program {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(42px, 7vw, 90px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.program-grid article {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.program-grid article:hover {
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.14);
  transform: translateY(-3px);
}

.program-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

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

.footer-logo {
  width: 72px;
  height: 42px;
  padding: 5px;
}

.admin-body {
  background: #fff8f1;
}

.login-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.admin-grid {
  display: grid;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px) 56px;
}

.admin-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(67, 20, 7, 0.08);
}

.login-panel .admin-card {
  width: min(440px, 100%);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label:nth-child(5) {
  grid-column: 1 / -1;
}

.alert {
  padding: 13px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.success {
  color: #c2410c;
  background: #ffedd5;
}

.error {
  color: #8a1f1b;
  background: #ffe2df;
}

.media-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.media-row,
.stat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.media-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.media-row button {
  padding: 9px 12px;
  color: var(--danger);
  background: #fff1ef;
  border: 1px solid #ffc8c1;
  border-radius: 8px;
  cursor: pointer;
}

.repeat-row {
  display: grid;
  grid-template-columns: 120px 170px 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.repeat-row textarea {
  grid-column: 1 / -1;
  min-height: 78px;
}

.stat-row {
  grid-template-columns: 180px 1fr;
  margin-bottom: 10px;
}

.logo-admin-form {
  align-items: end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.logo-admin-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.logo-admin-item {
  padding: 16px;
  background: #fffaf5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.logo-admin-item .logo-admin-form {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.logo-preview {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 12px;
  background: #fff8f1;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.logo-preview img {
  width: min(180px, 100%);
  height: 58px;
  object-fit: contain;
}

.remove-logo-form {
  margin-top: 10px;
}

.remove-logo-form button {
  padding: 9px 12px;
  color: var(--danger);
  background: #fff1ef;
  border: 1px solid #ffc8c1;
  border-radius: 8px;
  cursor: pointer;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.fit-display:not(.admin-body) {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  height: 100vh;
  overflow: hidden;
}

body.fit-display .topbar {
  position: static;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

body.fit-display .brand-mark {
  width: 42px;
  height: 42px;
}

body.fit-display .brand-logo-image {
  width: 100px;
  height: 58px;
}

body.fit-display .partner-logo {
  width: 62px;
  height: 62px;
}

body.fit-display .brand small {
  display: none;
}

body.fit-display .nav a {
  padding: 8px 10px;
}

body.fit-display .live-clock {
  padding: 6px 10px;
}

body.fit-display .live-clock span {
  font-size: 11px;
}

body.fit-display .live-clock strong {
  font-size: 16px;
}

body.fit-display .ticker {
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}

body.fit-display .layout {
  min-height: 0;
  height: 100%;
  grid-template-columns: minmax(0, 1fr) clamp(420px, 32vw, 560px);
  overflow: hidden;
}

body.fit-display .hero,
body.fit-display .media-slider,
body.fit-display .slide {
  height: 100%;
  min-height: 0;
}

body.fit-display .hero-copy {
  bottom: clamp(54px, 8vh, 92px);
  width: min(560px, calc(100% - 44px));
}

body.fit-display h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4.5vw, 58px);
}

body.fit-display .hero-copy p {
  max-width: 540px;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.35;
}

body.fit-display .button {
  min-height: 38px;
  padding: 8px 14px;
}

body.fit-display .caption {
  right: 16px;
  bottom: 16px;
  padding: 9px 12px;
}

body.fit-display .announcements {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  overflow: visible;
}

body.fit-display .aside-head {
  padding-bottom: 8px;
}

body.fit-display .aside-head h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 2vw, 30px);
}

body.fit-display .announcement-list {
  flex: 1;
  align-content: start;
  gap: 7px;
  margin-top: 8px;
}

body.fit-display .announcement {
  padding: 8px 10px;
  min-height: 0;
}

body.fit-display .announcement div {
  margin-bottom: 5px;
}

body.fit-display .announcement h3 {
  margin-bottom: 4px;
  font-size: clamp(14px, 1.1vw, 17px);
}

body.fit-display .announcement p {
  display: block;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.25;
  overflow: visible;
}

body.fit-display .stats-band {
  min-height: 66px;
}

body.fit-display .stat {
  padding: 10px clamp(18px, 3vw, 40px);
}

body.fit-display .stat strong {
  font-size: clamp(24px, 3vw, 38px);
}

body.fit-display .stat span {
  font-size: 13px;
}

body.fit-display .ai-section {
  display: none;
}

body.fit-display .ai-panel {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px;
  max-height: min(420px, 48vh);
  overflow: auto;
  box-shadow: 0 22px 55px rgba(30, 58, 138, 0.22);
}

body.fit-display .ai-copy h2 {
  margin-bottom: 6px;
  font-size: clamp(18px, 1.7vw, 24px);
}

body.fit-display .ai-copy p,
body.fit-display .ai-response p,
body.fit-display .ai-response small {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.3;
}

body.fit-display .ai-tags {
  gap: 5px;
  margin-top: 8px;
}

body.fit-display .ai-tags button {
  padding: 6px 8px;
  font-size: 11px;
}

body.fit-display .ai-form {
  gap: 8px;
}

body.fit-display .ai-form textarea {
  min-height: 70px;
}

body.fit-display .ai-response {
  padding: 10px;
}

body.fit-display .ai-response h3 {
  margin: 6px 0;
  font-size: 16px;
}

body.fit-display .program {
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(16px, 3vw, 38px);
  padding: 12px clamp(18px, 4vw, 52px);
}

body.fit-display .program h2 {
  margin-bottom: 0;
  font-size: clamp(20px, 2vw, 28px);
}

body.fit-display .program-grid {
  gap: 8px;
}

body.fit-display .program-grid article {
  padding: 10px;
}

body.fit-display .program-grid h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

body.fit-display .program-grid p {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.3;
}

body.fit-display .footer {
  min-height: 36px;
  padding: 8px clamp(18px, 4vw, 52px);
  font-size: 12px;
}

@media (min-width: 701px) and (max-width: 1250px) {
  body.fit-display .layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 42vw);
  }

  body.fit-display .announcement p {
    font-size: 12px;
  }
}

@media (min-width: 701px) and (max-height: 760px) {
  body.fit-display .layout {
    grid-template-columns: minmax(0, 1fr) clamp(440px, 34vw, 580px);
  }

  body.fit-display .announcements {
    padding: 9px;
  }

  body.fit-display .announcement-list {
    gap: 5px;
    margin-top: 6px;
  }

  body.fit-display .announcement {
    padding: 6px 8px;
  }

  body.fit-display .announcement h3 {
    font-size: 14px;
  }

  body.fit-display .announcement p {
    font-size: 11px;
    line-height: 1.2;
  }
}


@media (max-width: 1050px) {
  body:not(.fit-display) .layout {
    grid-template-columns: 1fr;
  }

  body:not(.fit-display) .announcements {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  body:not(.fit-display) .announcement-list,
  body:not(.fit-display) .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body:not(.fit-display) .program {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  .topbar,
  .admin-header,
  .footer {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-header,
  .footer {
    flex-direction: column;
  }

  .brand {
    align-items: flex-start;
    min-width: 0;
  }

  .brand-mark {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
  }

  .brand-logo-image {
    flex: 0 0 auto;
    width: 70px;
    height: 44px;
  }

  .mobile-menu-button {
    display: grid;
    grid-column: 2;
    grid-row: 1;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
  }

  .partner-logo {
    width: 78px;
    height: 46px;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    gap: 8px;
  }

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

  .nav a {
    flex: 1;
    min-width: 96px;
    padding: 9px 10px;
    background: #fff1e6;
    text-align: center;
  }

  .live-clock {
    width: 100%;
    text-align: left;
  }

  .ticker {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 16px;
  }

  .layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero,
  .media-slider,
  .slide {
    min-height: 480px;
  }

  .slide img,
  .slide video {
    object-position: center top;
  }

  h1 {
    font-size: clamp(34px, 12vw, 42px);
    line-height: 1;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy {
    left: 18px;
    bottom: 86px;
    width: calc(100% - 36px);
  }

  .hero-copy p {
    font-size: 15px;
    line-height: 1.45;
  }

  .button {
    min-height: 42px;
    padding: 10px 14px;
  }

  .slider-control {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
    padding: 10px 12px;
  }

  .announcements {
    padding: 20px 16px;
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow: visible;
  }

  .aside-head {
    padding-bottom: 12px;
  }

  .announcement {
    padding: 14px;
  }

  .announcement div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .announcement p {
    font-size: 14px;
    line-height: 1.45;
  }

  .stats-band {
    gap: 10px;
    padding: 16px;
    background: var(--paper);
    border: 0;
  }

  .stat {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .stat strong {
    font-size: 34px;
  }

  .program {
    padding: 28px 16px;
    gap: 18px;
  }

  .ai-panel {
    grid-template-columns: 1fr;
  }

  .program-grid article {
    padding: 16px;
  }

  .footer {
    font-size: 13px;
    line-height: 1.5;
  }

  .stats-band,
  .program-grid,
  .announcement-list,
  .form-grid,
  .repeat-row,
  .stat-row {
    grid-template-columns: 1fr;
  }
}

/* Professional polish layer */
:root {
  --orange-deep: #431407;
  --orange-soft: #fff1e6;
  --blue-deep: #1e3a8a;
  --blue-glow: rgba(30, 58, 138, 0.14);
}

.topbar,
.admin-header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(30, 58, 138, 0.09);
}

.brand strong {
  color: var(--blue-deep);
  font-size: 18px;
  letter-spacing: 0.01em;
}

.live-pill {
  justify-self: end;
  padding: 3px 7px;
  color: var(--white) !important;
  background: var(--green);
  border-radius: 999px;
  font-size: 10px !important;
  letter-spacing: 0.08em;
}

.ticker {
  background: linear-gradient(90deg, var(--blue-deep), var(--green-dark));
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(560px, 100%);
  margin-top: 20px;
}

.hero-metrics span {
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.hero-metrics strong,
.hero-metrics small {
  display: block;
}

.hero-metrics strong {
  color: var(--white);
  font-size: 22px;
}

.hero-metrics small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.25;
}

.button:hover {
  background: #ea580c;
}

.aside-head h2 {
  color: var(--blue-deep);
}

.announcement {
  background: linear-gradient(180deg, #ffffff, var(--blue-soft));
}

.stats-band {
  background: linear-gradient(90deg, var(--blue-deep), var(--green-dark));
}

.stat {
  background: rgba(255, 255, 255, 0.94);
}

.program-grid article {
  position: relative;
  overflow: hidden;
}

.program-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
}

.program-number {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 8px;
  color: var(--green-dark);
  background: linear-gradient(90deg, var(--orange-soft), var(--blue-soft));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.footer {
  background: linear-gradient(90deg, var(--blue-deep), var(--orange-deep));
}

@media (max-width: 700px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-metrics span {
    padding: 9px 10px;
  }
}



/* Balanced blue and orange scrolling bar */
.ticker {
  background: linear-gradient(90deg, var(--blue-deep), #c2410c) !important;
}

.ticker strong {
  color: #c2410c;
}


