:root {
  --ink: #161412;
  --muted: #655d55;
  --paper: #ead6b8;
  --surface: #fff5df;
  --line: #d2c1ac;
  --saffron: #f47a00;
  --deep-saffron: #d94a00;
  --maroon: #661400;
  --red: #9f1d00;
  --cream: #ffe4ad;
  --soft: #fff8ec;
  --shadow: 0 18px 42px rgba(37, 25, 14, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(244, 122, 0, 0.22), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(102, 20, 0, 0.16), transparent 30%),
    linear-gradient(180deg, #f2dfbf 0, #ead6b8 44%, #dcc39c 100%);
  font-family: "Kohinoor Devanagari", "Nirmala UI", "Noto Serif Devanagari", "Mangal", serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(102, 20, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 20, 0, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(#000, transparent 62%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.paper-top,
.masthead,
.nav-ribbon,
main,
.footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

main {
  display: flex;
  flex-direction: column;
}

body:has(.edition-masthead) main {
  width: min(1280px, calc(100% - 20px));
}

body:has(.epaper-viewer) main {
  width: min(1280px, calc(100% - 20px));
}

body.news-home {
  min-height: 100vh;
  color: #fff8ec;
  background:
    radial-gradient(circle at 12% 0%, rgba(229, 0, 0, 0.28), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(244, 122, 0, 0.22), transparent 32%),
    linear-gradient(135deg, #140302 0%, #320705 42%, #080101 100%);
  font-family: "Nirmala UI", "Mangal", system-ui, sans-serif;
}

body.news-home::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(#000, transparent 72%);
}

.dn-topbar,
.dn-main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.dn-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.dn-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  font-weight: 1000;
  letter-spacing: 0;
}

.dn-brand span,
.dn-brand strong {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 10px;
}

.dn-brand span {
  background: #d50000;
}

.dn-brand strong {
  color: #2b0503;
  background: #fff8ec;
}

.dn-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  background: rgba(255, 248, 236, 0.08);
  border: 1px solid rgba(255, 228, 173, 0.18);
}

.dn-nav a {
  flex: 0 0 auto;
  padding: 10px 13px;
  color: #fff8ec;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 900;
}

.dn-nav a:hover {
  background: #d50000;
}

.dn-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 34px;
}

.dn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 22px;
  align-items: stretch;
  min-height: min(620px, calc(100vh - 130px));
  padding: 26px;
  border: 1px solid rgba(255, 228, 173, 0.2);
  background:
    linear-gradient(120deg, rgba(255, 248, 236, 0.10), rgba(255, 248, 236, 0.03)),
    rgba(0, 0, 0, 0.18);
}

.dn-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.dn-live-pill {
  display: inline-grid;
  place-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: #d50000;
  font-size: 0.8rem;
  font-weight: 1000;
}

.dn-hero h1 {
  margin: 16px 0 10px;
  color: #fff;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.9;
  font-weight: 1000;
  text-transform: uppercase;
}

.dn-hero p {
  max-width: 660px;
  margin: 0;
  color: #ffe4ad;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.55;
  font-weight: 800;
}

.dn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.dn-primary,
.dn-secondary {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 950;
}

.dn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f47a00, #d50000);
}

.dn-secondary {
  color: #320705;
  background: #fff8ec;
}

.dn-live-panel {
  display: grid;
  grid-template-rows: minmax(240px, 1fr) auto;
  min-width: 0;
  border: 1px solid rgba(255, 228, 173, 0.22);
  background: #080101;
}

.dn-live-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(244, 122, 0, 0.44), transparent 48%),
    linear-gradient(145deg, #210604, #050000);
}

.dn-live-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1);
}

.dn-live-frame > strong {
  position: relative;
  z-index: 1;
  display: block;
  width: min(92%, 470px);
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.dn-live-frame span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  color: #fff;
  background: #d50000;
  font-weight: 1000;
}

.dn-bulletin {
  padding: 16px;
  border-top: 4px solid #d50000;
}

.dn-bulletin strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 1.1rem;
}

.dn-bulletin p {
  margin: 0;
  color: #ffe4ad;
}

.dn-ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: #fff8ec;
  color: #2b0503;
}

.dn-ticker strong {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 12px 18px;
  color: #fff;
  background: #d50000;
  font-weight: 1000;
}

.dn-ticker p {
  margin: 0;
  padding: 12px 16px;
  font-weight: 850;
}

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

.dn-grid article,
.dn-tools a {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 228, 173, 0.18);
  background: rgba(255, 248, 236, 0.08);
}

.dn-grid span {
  color: #ffb14a;
  font-weight: 1000;
}

.dn-grid h2 {
  margin: 8px 0 6px;
  color: #fff;
  font-size: 1.28rem;
  line-height: 1.25;
}

.dn-grid p {
  margin: 0;
  color: #ffe4ad;
}

.dn-tools a {
  color: #fff8ec;
  text-decoration: none;
}

.dn-tools strong,
.dn-tools span {
  display: block;
}

.dn-tools strong {
  color: #fff;
  font-size: 1.08rem;
}

.dn-tools span {
  margin-top: 5px;
  color: #ffe4ad;
}

@media (max-width: 820px) {
  .dn-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dn-nav {
    width: 100%;
  }

  .dn-hero {
    grid-template-columns: 1fr;
    padding: 18px;
    min-height: 0;
  }

  .dn-live-frame {
    min-height: 220px;
  }

  .dn-grid,
  .dn-tools {
    grid-template-columns: 1fr;
  }

  .dn-ticker {
    grid-template-columns: 1fr;
  }
}

.paper-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--maroon);
  font-weight: 900;
}

.masthead {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 0;
  padding: 20px 18px 14px;
  background:
    radial-gradient(circle at center top, rgba(255, 255, 255, 0.9), transparent 45%),
    linear-gradient(180deg, #fff8e9 0, #ffe7b8 62%, #dca15f 100%);
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom: 7px solid var(--ink);
  border-left: 0;
  border-right: 0;
}

.masthead-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.masthead-tools span,
.epaper-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--maroon);
  background: var(--soft);
  font-weight: 950;
}

.masthead-tools span {
  display: grid;
  place-items: center;
  padding: 0 12px;
  font-size: 0.78rem;
}

.brand {
  display: grid;
  justify-content: center;
  align-items: center;
  color: inherit;
  text-align: center;
  text-decoration: none;
  min-width: 0;
}

.brand > span:last-child {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.brand-title {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--deep-saffron);
  font-family: "Kohinoor Devanagari", "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;
  font-weight: 1000;
  letter-spacing: 0;
  min-width: 0;
}

.brand-title span {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 2px 12px 0;
  margin-bottom: 0;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: clamp(0.9rem, 1.45vw, 1.2rem);
  line-height: 1;
  font-weight: 1000;
  -webkit-text-stroke: 0;
}

.brand-title em {
  display: block;
  color: var(--red);
  font-style: normal;
  font-size: clamp(4.1rem, 9vw, 8.4rem);
  line-height: 1;
  font-weight: 1000;
  -webkit-text-stroke: 2px var(--red);
  text-shadow:
    0 2px 0 #fff,
    0 5px 0 rgba(102, 20, 0, 0.16);
}

.brand small {
  display: block;
  margin-top: 10px;
  color: var(--maroon);
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  line-height: 1.35;
  font-weight: 950;
}

.epaper-btn,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  border: 0;
  border-radius: 2px;
  padding: 0 16px;
  font-weight: 950;
}

.nav-ribbon {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  background: var(--ink);
  border-bottom: 4px solid var(--saffron);
  box-shadow: none;
}

.nav-ribbon a {
  flex: 0 0 auto;
  padding: 12px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.nav-ribbon a:hover {
  background: var(--red);
}

.ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  border: 1px solid var(--line);
  background: #fff3d7;
  box-shadow: var(--shadow);
}

.ticker strong {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 8px 14px;
  color: #fff;
  background: var(--red);
}

.ticker p {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.network-hero,
.ai-writer-preview,
.feature-board,
.automation-flow,
.citizen-reporter,
.admin-panel {
  margin: 18px 0 24px;
  padding: clamp(20px, 4vw, 34px);
  background: linear-gradient(135deg, rgba(255, 245, 223, 0.98), rgba(255, 228, 173, 0.72));
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.network-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: center;
}

.network-hero h1 {
  max-width: 820px;
  font-size: clamp(1.9rem, 4.2vw, 3.8rem);
  line-height: 1.16;
}

.network-hero p:not(.kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
}

.network-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.network-stats div,
.writer-input,
.writer-output,
.admin-output,
.flow-steps div {
  padding: 16px;
  background: rgba(255, 248, 236, 0.9);
  border: 1px solid var(--line);
}

.network-stats strong {
  color: var(--red);
  font-size: 1.8rem;
}

.network-stats span {
  color: var(--muted);
  font-weight: 900;
}

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

.primary-link,
.secondary-link {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  border-radius: 2px;
  font-weight: 950;
  text-decoration: none;
}

.primary-link {
  color: #fff;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
}

.secondary-link {
  color: var(--maroon);
  background: var(--cream);
  border: 1px solid var(--line);
}

.writer-grid,
.admin-writer-grid,
.citizen-reporter {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
}

.writer-input,
.writer-output,
.admin-output {
  display: grid;
  gap: 10px;
}

.writer-input label {
  color: var(--muted);
  font-weight: 900;
}

.writer-input textarea,
.writer-input select,
.report-form input,
.report-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.writer-input textarea,
.report-form textarea {
  min-height: 130px;
  resize: vertical;
}

.writer-output span,
.admin-output span {
  color: var(--red);
  font-weight: 950;
}

.writer-output h3,
.admin-output h3 {
  margin: 0;
  color: var(--maroon);
}

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

.feature-grid article,
.admin-cards article {
  padding: 18px;
  background: linear-gradient(180deg, #fff8ec, #ffe4ad);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-grid span {
  font-size: 1.6rem;
}

.feature-grid h3,
.admin-cards h3 {
  margin: 8px 0;
  color: var(--maroon);
  line-height: 1.35;
}

.feature-grid p,
.admin-cards p {
  margin: 0;
  color: var(--muted);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow-steps strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  margin-bottom: 10px;
}

.flow-steps span {
  color: var(--ink);
  font-weight: 900;
}

.report-form {
  display: grid;
  gap: 10px;
}

.admin-shell {
  width: min(1280px, calc(100% - 20px));
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0 34px;
}

.admin-sidebar {
  position: sticky;
  top: 14px;
  align-self: start;
  padding: 18px;
  background: #202020;
  color: #fff;
  border-radius: 2px;
}

.admin-brand {
  display: grid;
  margin-bottom: 18px;
  color: #fff;
  text-decoration: none;
}

.admin-brand span {
  color: #ffb34d;
  font-weight: 950;
}

.admin-brand strong {
  color: var(--deep-saffron);
  font-size: 2.4rem;
  line-height: 1;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar a:not(.admin-brand) {
  padding: 10px 12px;
  color: #f7f2ea;
  background: #303030;
  text-decoration: none;
  font-weight: 900;
}

.admin-content {
  min-width: 0;
}

.admin-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-topline h1 {
  margin: 0;
  color: var(--maroon);
}

.article-topbar {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.site-brand-bug {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 30;
  display: grid;
  padding: 7px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  border: 2px solid #fff4dc;
  box-shadow: 0 10px 24px rgba(38, 28, 18, 0.22);
  text-decoration: none;
}

.site-brand-bug span {
  color: #fff4dc;
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1;
}

.site-brand-bug strong {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 1000;
}

.article-brand {
  display: grid;
  color: var(--deep-saffron);
  text-decoration: none;
}

.article-brand span {
  color: var(--maroon);
  font-weight: 1000;
}

.article-brand strong {
  font-size: 2.4rem;
  line-height: 0.9;
  font-weight: 1000;
}

.article-topbar nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-topbar nav a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.article-shell {
  width: min(1180px, calc(100% - 28px));
  display: block;
  margin: 22px auto 42px;
}

.article-page {
  padding: clamp(22px, 4vw, 44px);
  background:
    linear-gradient(rgba(28, 27, 25, 0.022) 1px, transparent 1px),
    #fffdf8;
  background-size: 100% 26px;
  border: 1px solid #cfc3b4;
  box-shadow: 0 24px 60px rgba(38, 28, 18, 0.16);
}

.article-paper-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 5px double var(--ink);
  color: var(--ink);
  font-weight: 900;
}

.article-paper-head strong {
  display: grid;
  justify-items: center;
  color: var(--deep-saffron);
  font-family: "Noto Serif Devanagari", "Mukta", "Noto Sans Devanagari", "Mangal", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.82;
  font-weight: 1000;
  -webkit-text-stroke: 1.7px var(--deep-saffron);
  text-shadow:
    0 2px 0 #fff,
    0 4px 0 rgba(102, 20, 0, 0.12);
}

.article-paper-head strong em {
  font-style: normal;
}

.article-paper-head small {
  color: var(--maroon);
  font-size: clamp(0.82rem, 1.5vw, 1.1rem);
  line-height: 1;
  -webkit-text-stroke: 0;
}

.article-paper-head span:last-child {
  text-align: right;
}

.article-section-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  margin-bottom: 16px;
  color: var(--maroon);
  border-bottom: 2px solid var(--red);
  font-weight: 950;
}

.article-page h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif Devanagari", "Mukta", "Noto Sans Devanagari", "Mangal", serif;
  font-size: clamp(2.4rem, 5.8vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.article-summary {
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 800;
  border-left: 5px solid var(--deep-saffron);
  padding-left: 14px;
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 16px;
  color: var(--muted);
  border-top: 1px solid #cfc3b4;
  border-bottom: 1px solid #cfc3b4;
  font-weight: 900;
}

.article-page img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  border: 1px solid #cfc3b4;
}

.article-body {
  columns: 3 230px;
  column-gap: 30px;
  column-rule: 1px solid #d8cdbf;
}

.article-body p {
  margin-top: 0;
  color: #312a24;
  font-size: 1.02rem;
  line-height: 1.65;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.article-tags span {
  padding: 5px 9px;
  color: var(--maroon);
  background: var(--cream);
  border: 1px solid var(--line);
  font-weight: 900;
}

.article-actions {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 10;
  display: grid;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(38, 28, 18, 0.16);
  backdrop-filter: blur(10px);
}

.article-actions button,
.article-actions a {
  width: 38px;
  height: 38px;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: #1c1b19;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
  font-size: 1.05rem;
  text-decoration: none;
}

.article-actions button:hover,
.article-actions a:hover {
  background: var(--deep-saffron);
}

.news-card {
  cursor: pointer;
}

.news-card:focus-visible {
  outline: 3px solid var(--deep-saffron);
  outline-offset: 3px;
}

.live-control-grid,
.live-stage {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
}

.live-setup-card,
.live-side {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.live-page {
  width: min(1280px, calc(100% - 20px));
  padding: 18px 0 34px;
}

.live-header {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  background: #202020;
  color: #fff;
}

.live-header h1 {
  margin: 0;
  color: #fff4dc;
}

.live-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border: 1px solid #333;
}

.live-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.tv-logo-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(116, 24, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.tv-logo-overlay span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--maroon);
  background: #ffb34d;
  border-radius: 50%;
  font-weight: 1000;
}

.tv-logo-overlay strong {
  font-size: 0.95rem;
  font-weight: 1000;
}

.obs-overlay-body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

.obs-overlay-body::before {
  display: none;
}

.live-overlay-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

.obs-logo {
  position: fixed;
  top: 34px;
  right: 44px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #fff;
  background: #e65100;
  border: 4px solid #fff;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.48),
    0 0 0 3px rgba(255, 138, 0, 0.7);
}

.obs-logo.image-logo {
  width: 230px;
  min-height: 138px;
  justify-content: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-color: #ff8a00;
  border-radius: 6px;
}

.obs-logo.image-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 126px;
  object-fit: contain;
}

.obs-logo span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #741800;
  background: #fff4dc;
  border-radius: 50%;
  font-size: 1.85rem;
  font-weight: 1000;
}

.obs-logo strong {
  display: block;
  color: #fff;
  font-size: 2.15rem;
  line-height: 0.9;
  font-weight: 1000;
  text-shadow:
    0 2px 0 rgba(116, 24, 0, 0.5),
    0 0 12px rgba(255, 255, 255, 0.18);
}

.obs-logo small {
  display: block;
  color: #fff4dc;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0;
}

.obs-live-tag {
  position: fixed;
  top: 122px;
  right: 44px;
  z-index: 20;
  padding: 6px 14px;
  color: #fff;
  background: #111;
  border-left: 6px solid #ff8a00;
  font-weight: 1000;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.obs-live-tag span {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff1d1d;
  box-shadow: 0 0 0 rgba(255, 29, 29, 0.8);
  animation: livePulse 1.1s infinite;
}

.coming-soon-screen {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 7vw;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(255, 138, 0, 0.36), transparent 34%),
    linear-gradient(135deg, rgba(116, 24, 0, 0.94), rgba(230, 81, 0, 0.88));
}

.coming-soon-screen div {
  text-align: center;
  padding: 36px;
  border: 3px solid rgba(255, 244, 220, 0.72);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.coming-soon-screen p {
  margin: 0 0 10px;
  color: #ffdf9b;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 1000;
}

.coming-soon-screen h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: 1;
  text-shadow: 0 6px 0 rgba(116, 24, 0, 0.42);
}

.coming-soon-screen span {
  display: block;
  margin-top: 18px;
  color: #fff4dc;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 950;
}

.obs-lower-third {
  position: fixed;
  z-index: 20;
  left: 26px;
  right: 26px;
  bottom: 82px;
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 86px;
  color: #fff;
  background: rgba(18, 18, 18, 0.96);
  border: 3px solid #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.flash-news-strip {
  position: fixed;
  z-index: 20;
  left: 26px;
  right: 26px;
  bottom: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 46px;
  color: #111;
  background: #fff;
  border: 3px solid #ff8a00;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: flashBarGlow 1.2s infinite alternate;
}

.flash-news-strip strong {
  display: grid;
  place-items: center;
  padding: 0 18px;
  color: #fff;
  background: #ff8a00;
  font-weight: 1000;
}

.flash-marquee {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.flash-marquee p,
.flash-news-strip p {
  margin: 0;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 100%;
  padding: 0 34px;
  color: #741800;
  font-size: 1.08rem;
  font-weight: 950;
  animation: flashScroll 19s linear infinite;
}

.breaking-label {
  display: grid;
  place-items: center;
  padding: 0 20px;
  background: linear-gradient(180deg, #ff2a2a, #a50000);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 1000;
  text-align: center;
}

.breaking-copy {
  display: grid;
  align-content: center;
  padding: 10px 18px;
  background: #fff;
  color: #111;
}

.breaking-copy strong {
  color: #b00000;
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 950;
}

.breaking-copy span {
  margin-top: 5px;
  color: #333;
  font-size: 1rem;
  font-weight: 900;
}

@keyframes livePulse {
  0% {
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(255, 29, 29, 0.78);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 9px rgba(255, 29, 29, 0);
  }

  100% {
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(255, 29, 29, 0);
  }
}

@keyframes flashBarGlow {
  from {
    border-color: #ff8a00;
  }

  to {
    border-color: #ff1d1d;
  }
}

@keyframes flashScroll {
  from {
    transform: translateX(0);
  }

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

@keyframes anchorTalk {
  from {
    transform: translateY(0) scale(1);
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.36),
      inset 0 -22px 40px rgba(68, 10, 0, 0.34);
  }

  to {
    transform: translateY(-4px) scale(1.025);
    box-shadow:
      0 26px 58px rgba(0, 0, 0, 0.42),
      inset 0 -16px 34px rgba(68, 10, 0, 0.28);
  }
}

@keyframes promoSweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ai-live-body {
  min-height: 100vh;
  overflow: hidden;
  background: #15110f;
}

.ai-live-body::before {
  display: none;
}

.ai-live-app {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  margin: 0;
  background: #15110f;
}

.ai-broadcast {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 76% 18%, rgba(255, 153, 0, 0.38), transparent 24%),
    linear-gradient(135deg, #2b0500 0%, #7f1700 45%, #d45600 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.ai-live-topbar {
  position: absolute;
  top: 24px;
  left: 26px;
  right: 26px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.ai-live-topbar img {
  width: 210px;
  max-height: 118px;
  object-fit: contain;
  padding: 7px;
  background: rgba(255, 255, 255, 0.96);
  border: 4px solid #ff8a00;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.ai-live-topbar div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(10, 10, 10, 0.94);
  border-left: 6px solid #ff1d1d;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.ai-live-topbar span {
  color: #fff;
  font-weight: 1000;
}

.ai-live-topbar strong {
  color: #ffdf9b;
  font-size: 1.05rem;
}

.ai-news-scene {
  height: calc(100% - 160px);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 142px 54px 118px;
}

.ai-anchor-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.ai-anchor-face {
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, #fff2cf 0 18%, transparent 19%),
    linear-gradient(145deg, #ffb34d, #8f1c00);
  border: 7px solid #fff5df;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.36),
    inset 0 -22px 40px rgba(68, 10, 0, 0.34);
}

.ai-anchor-face span {
  color: #fff;
  font-size: 4.4rem;
  line-height: 1;
  font-weight: 1000;
  text-shadow: 0 5px 0 rgba(80, 12, 0, 0.36);
}

.anchor-speaking .ai-anchor-face {
  animation: anchorTalk 0.52s ease-in-out infinite alternate;
}

.ai-anchor-panel p {
  margin: 0;
  padding: 7px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 950;
}

.ai-program-panel {
  display: grid;
  grid-template-rows: minmax(220px, 0.86fr) auto;
  gap: 14px;
  min-width: 0;
}

.ai-media-window {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #111;
  border: 5px solid #fff;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

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

.ai-media-window span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 9px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  font-weight: 950;
}

.ai-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: grid;
  place-items: center;
  color: #ffdf9b;
  background:
    radial-gradient(circle at center, rgba(255, 138, 0, 0.38), transparent 36%),
    linear-gradient(135deg, #250300, #7f1700);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 1000;
}

.dharmveer-promo-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 82% 22%, rgba(255, 196, 94, 0.42), transparent 28%),
    linear-gradient(135deg, #210300 0%, #8b1a00 48%, #ee7600 100%);
  background-size: 30px 30px, 30px 30px, auto, auto;
}

.dharmveer-promo-scene::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 180deg, transparent, rgba(255, 255, 255, 0.18), transparent 30%);
  animation: promoSweep 7s linear infinite;
}

.dharmveer-promo-scene img {
  position: relative;
  z-index: 1;
  width: 220px;
  max-height: 150px;
  object-fit: contain;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 4px solid #ffdf9b;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.dharmveer-promo-scene div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.dharmveer-promo-scene span {
  width: fit-content;
  padding: 5px 12px;
  color: #741800;
  background: #ffdf9b;
  font-weight: 1000;
}

.dharmveer-promo-scene strong {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 5.6rem);
  line-height: 0.95;
  font-weight: 1000;
  text-shadow: 0 6px 0 rgba(82, 12, 0, 0.42);
}

.dharmveer-promo-scene p {
  max-width: 760px;
  margin: 0;
  color: #fff8ec;
  font-size: clamp(1.05rem, 2.2vw, 1.75rem);
  line-height: 1.22;
  font-weight: 950;
}

.dharmveer-promo-scene small {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  font-weight: 900;
}

.ai-headline-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px 24px;
  background: rgba(255, 248, 236, 0.96);
  color: #18110c;
  border: 5px solid #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.ai-headline-card span {
  width: fit-content;
  padding: 5px 12px;
  color: #fff;
  background: #b00000;
  font-weight: 1000;
}

.ai-headline-card h1 {
  color: #741800;
  font-size: clamp(1.6rem, 3.6vw, 3.2rem);
  line-height: 1.04;
  font-weight: 1000;
}

.ai-headline-card p {
  margin: 0;
  color: #33221a;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 900;
}

.ai-lower-third {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 74px;
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 78px;
  border: 3px solid #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.ai-lower-third strong {
  display: grid;
  place-items: center;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(180deg, #ff2a2a, #a50000);
  font-size: 1.38rem;
  text-align: center;
}

.ai-lower-third p {
  margin: 0;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 10px 18px;
  color: #b00000;
  background: #fff;
  font-size: 1.42rem;
  line-height: 1.18;
  font-weight: 950;
}

.ai-flash-strip {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 42px;
  color: #111;
  background: #fff;
  border: 3px solid #ff8a00;
  overflow: hidden;
  animation: flashBarGlow 1.2s infinite alternate;
}

.ai-flash-strip strong {
  display: grid;
  place-items: center;
  padding: 0 18px;
  color: #fff;
  background: #ff8a00;
  font-weight: 1000;
}

.ai-flash-strip div {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.ai-flash-strip p {
  flex: 0 0 auto;
  min-width: 100%;
  margin: 0;
  padding: 0 34px;
  color: #741800;
  font-size: 1.02rem;
  font-weight: 950;
  animation: flashScroll 20s linear infinite;
}

.ai-live-control {
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  color: #fff4dc;
  background: #1f1b18;
  border-left: 1px solid rgba(255, 228, 173, 0.18);
}

.ai-live-control h2 {
  margin: 0;
  color: #ffb34d;
  font-size: 1.35rem;
}

.ai-live-control label {
  color: #fff;
  font-weight: 900;
}

.ai-live-control textarea,
.ai-live-control input {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  color: #161412;
  background: #fff8ec;
  border: 1px solid #ffb34d;
  border-radius: 2px;
}

.ai-live-control textarea {
  min-height: 118px;
  resize: vertical;
}

.ai-control-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 8px;
}

.ai-record-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ai-auto-live-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: #fff;
  background: rgba(0, 107, 72, 0.34);
  border: 1px solid rgba(168, 240, 194, 0.42);
}

.ai-auto-live-card strong {
  color: #a8f0c2;
  font-size: 0.98rem;
}

.ai-auto-live-card span {
  color: #f6ead9;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
}

.ai-control-actions button,
.ai-record-actions button {
  min-height: 40px;
  color: #fff;
  background: #9f1d00;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.ai-record-actions button:last-child {
  background: #3f3a35;
}

.ai-record-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.ai-upload-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ai-upload-links a {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  color: #741800;
  background: #ffdf9b;
  border: 1px solid #ffb34d;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.ai-live-control p {
  margin: 8px 0 0;
  color: #d8cdbf;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ai-live-control p strong {
  color: #ffdf9b;
  overflow-wrap: anywhere;
}

.ai-live-body.clean-output .ai-live-app {
  grid-template-columns: 1fr;
}

.ai-live-body.clean-output .ai-live-control {
  display: none;
}

.ai-live-body.clean-output .ai-broadcast {
  min-height: 100vh;
}

.encoder-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 228, 173, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #161412, #3a1208 58%, #8c2500);
  background-size: 100% 30px, auto;
}

.encoder-body::before {
  display: none;
}

.encoder-app {
  width: min(1360px, calc(100% - 24px));
  padding: 18px 0 34px;
  color: #fff4dc;
}

.encoder-header {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  background: #202020;
  border: 1px solid rgba(255, 179, 77, 0.24);
}

.encoder-header h1 {
  margin: 0;
  color: #fff;
}

.encoder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.encoder-preview-panel,
.platform-panel {
  background: rgba(20, 18, 16, 0.94);
  border: 1px solid rgba(255, 179, 77, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.encoder-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.encoder-screen video,
.encoder-screen canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.encoder-screen video {
  opacity: 0;
  pointer-events: none;
}

.encoder-idle {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(244, 122, 0, 0.28), transparent 36%),
    rgba(0, 0, 0, 0.56);
  text-align: center;
}

.encoder-idle[hidden] {
  display: none;
}

.encoder-idle img {
  width: min(220px, 46vw);
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #ff8a00;
}

.encoder-idle strong {
  color: #ffdf9b;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.encoder-idle span {
  color: #fff4dc;
  font-weight: 900;
}

.encoder-status-strip {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  color: #d8cdbf;
  background: #111;
  border-top: 1px solid rgba(255, 179, 77, 0.22);
  font-weight: 900;
}

.encoder-status-strip strong {
  padding: 4px 10px;
  color: #fff;
  background: #555;
}

.encoder-status-strip strong.is-live {
  background: #b00000;
  animation: livePulse 1.1s infinite;
}

.encoder-control,
.platform-card,
.relay-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #211b17;
  border: 1px solid rgba(255, 179, 77, 0.26);
}

.encoder-control h2,
.platform-panel h2,
.platform-card h3,
.relay-panel h3 {
  margin: 0;
  color: #ffb34d;
}

.encoder-control label,
.platform-card label,
.encoder-switches label {
  color: #fff;
  font-weight: 900;
}

.encoder-control input,
.encoder-control textarea,
.platform-card input {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  color: #161412;
  background: #fff8ec;
  border: 1px solid #ffb34d;
  border-radius: 2px;
}

.encoder-control textarea {
  min-height: 92px;
  resize: vertical;
}

.encoder-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.browser-push-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.encoder-wide-button {
  min-height: 40px;
  color: #fff;
  background: #3f3a35;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.promo-button {
  background: #e65100;
}

.promo-page-body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #050505;
}

.promo-page-body::before {
  display: none;
}

.promo-showreel {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(255, 138, 0, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 32%, rgba(255, 138, 0, 0.34), transparent 30%),
    linear-gradient(135deg, #050505, #2b0500 55%, #e65100);
  background-size: 100% 42px, auto, auto;
}

.promo-frame {
  width: min(1180px, calc(100vw - 54px));
  min-height: min(640px, calc(100vh - 54px));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  text-align: center;
  border: 6px solid #ff8a00;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.12),
    0 28px 90px rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.38);
  animation: promoFramePulse 2.2s infinite alternate;
}

.promo-frame img {
  width: min(360px, 54vw);
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 4px solid #ff8a00;
}

.promo-copy span {
  color: #ffdf9b;
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 1000;
}

.promo-copy h1 {
  color: #fff;
  font-size: clamp(3.4rem, 9vw, 8.8rem);
  line-height: 0.92;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
}

.promo-copy p {
  color: #fff4dc;
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  font-weight: 950;
}

.promo-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.promo-points strong {
  padding: 10px 14px;
  color: #111;
  background: #ffdf9b;
  border: 2px solid #fff;
  font-weight: 1000;
}

.video-maker-body {
  min-height: 100vh;
  background: #111;
}

.video-maker-body::before {
  display: none;
}

.video-maker {
  width: min(1320px, calc(100% - 24px));
  padding: 18px 0 34px;
  color: #fff4dc;
}

.video-maker header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px;
  background: #202020;
  border: 1px solid rgba(255, 179, 77, 0.3);
}

.video-maker h1 {
  color: #fff;
}

.video-maker button,
.video-maker a {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  color: #fff;
  background: #e65100;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
  text-decoration: none;
}

.video-maker canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  border: 1px solid rgba(255, 179, 77, 0.4);
}

.video-maker p {
  color: #d8cdbf;
  font-weight: 850;
}

@keyframes promoFramePulse {
  from {
    transform: scale(0.985);
  }

  to {
    transform: scale(1);
  }
}

.encoder-action-grid button,
.browser-push-actions button,
.relay-panel button {
  min-height: 40px;
  color: #fff;
  background: #9f1d00;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.browser-push-actions button {
  background: #006b48;
}

.browser-push-actions button:last-child {
  background: #3f3a35;
}

.encoder-action-grid button:disabled,
.browser-push-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.encoder-switches {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 244, 220, 0.06);
  border: 1px solid rgba(255, 179, 77, 0.2);
}

.encoder-switches input {
  width: 18px;
  min-height: 18px;
  margin-right: 8px;
  accent-color: #ff8a00;
}

.encoder-control p,
.relay-panel p {
  margin: 0;
  color: #d8cdbf;
  line-height: 1.45;
}

.platform-panel,
.server-setup-panel {
  margin-top: 16px;
  padding: 18px;
}

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

.platform-card.is-armed {
  border-color: #37d67a;
  box-shadow: inset 0 0 0 2px rgba(55, 214, 122, 0.18);
}

.platform-state {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  color: #161412;
  background: #ffdf9b;
  font-weight: 950;
}

.platform-card.is-armed .platform-state {
  color: #052c15;
  background: #a8f0c2;
}

.relay-panel {
  grid-template-columns: 1fr auto auto;
  align-items: center;
  margin-top: 12px;
}

.server-setup-panel {
  background: rgba(20, 18, 16, 0.94);
  border: 1px solid rgba(255, 179, 77, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.server-setup-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
}

.server-form,
.server-output {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #211b17;
  border: 1px solid rgba(255, 179, 77, 0.26);
}

.server-form label {
  color: #fff;
  font-weight: 900;
}

.server-form input,
.server-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  color: #161412;
  background: #fff8ec;
  border: 1px solid #ffb34d;
  border-radius: 2px;
}

.server-actions,
.server-output-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-actions button,
.server-output-tabs button {
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  background: #9f1d00;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.server-output-tabs button {
  background: #3f3a35;
}

.server-output-tabs button.active {
  color: #161412;
  background: #ffdf9b;
}

.server-output pre {
  min-height: 360px;
  max-height: 560px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: #f6ead9;
  background: #111;
  border: 1px solid rgba(255, 179, 77, 0.22);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.publish-url-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.publish-url-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  background: rgba(255, 244, 220, 0.06);
  border: 1px solid rgba(255, 179, 77, 0.22);
}

.publish-url-grid span {
  color: #ffdf9b;
  font-size: 0.82rem;
  font-weight: 950;
}

.publish-url-grid strong {
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.media-manager-body {
  min-height: 100vh;
  background: #161412;
}

.media-manager-body::before {
  display: none;
}

.media-manager {
  width: min(1360px, calc(100% - 24px));
  padding: 18px 0 34px;
  color: #fff4dc;
}

.media-manager-head {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #2b0500, #7f1700);
  border: 1px solid rgba(255, 179, 77, 0.42);
}

.media-manager-head img {
  width: 138px;
  padding: 6px;
  background: #fff;
  border: 3px solid #ff8a00;
}

.media-manager-head p {
  margin: 0 0 4px;
  color: #ffb34d;
  font-weight: 950;
}

.media-manager-head h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.manager-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.manager-panel,
.manager-output > div {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px;
  background: #fff8ec;
  color: #161412;
  border: 1px solid #ffb34d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.manager-panel h2,
.manager-output h2 {
  margin: 0;
  color: #741800;
  font-size: 1.2rem;
  line-height: 1.2;
}

.manager-panel label {
  color: #661400;
  font-size: 0.88rem;
  font-weight: 950;
}

.manager-panel input,
.manager-panel textarea,
.manager-panel select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: #161412;
  background: #fff;
  border: 1px solid #d2c1ac;
  border-radius: 2px;
}

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

.manager-panel button {
  min-height: 40px;
  color: #fff;
  background: #9f1d00;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.manager-panel p {
  margin: 0;
  color: #655d55;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 800;
}

.media-preview {
  min-height: 136px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #655d55;
  background: #f4ead8;
  border: 1px dashed #d94a00;
  font-weight: 900;
}

.media-preview img,
.media-preview video {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
}

.manager-output {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

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

.manager-list article {
  padding: 10px;
  background: #fff;
  border-left: 4px solid #d94a00;
}

.manager-list strong {
  display: block;
  color: #9f1d00;
  line-height: 1.25;
}

.manager-list p {
  margin: 5px 0;
  color: #312a24;
  font-size: 0.92rem;
  line-height: 1.4;
}

.manager-list small {
  color: #655d55;
  font-weight: 900;
}

.newsroom-body {
  min-height: 100vh;
  background: #161412;
}

.newsroom-body::before {
  display: none;
}

.newsroom-app {
  width: min(1280px, calc(100% - 24px));
  padding: 18px 0 34px;
}

.newsroom-head {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2b0500, #7f1700);
  border: 1px solid rgba(255, 179, 77, 0.42);
}

.newsroom-head img {
  width: 138px;
  padding: 6px;
  background: #fff;
  border: 3px solid #ff8a00;
}

.newsroom-head p {
  margin: 0 0 4px;
  color: #ffb34d;
  font-weight: 950;
}

.newsroom-head h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.login-panel {
  display: grid;
  place-items: center;
  min-height: 62vh;
}

.login-panel > div,
.reporter-panel,
.admin-panel-room,
.live-approved-panel,
.newsroom-user {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  color: #161412;
  background: #fff8ec;
  border: 1px solid #ffb34d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

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

.login-panel h2,
.reporter-panel h2,
.admin-panel-room h2,
.live-approved-panel h2 {
  margin: 0;
  color: #741800;
}

.login-panel label,
.reporter-panel label {
  color: #661400;
  font-weight: 950;
}

.login-panel input,
.login-panel select,
.reporter-panel input,
.reporter-panel textarea,
.approval-actions input {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #d2c1ac;
  border-radius: 2px;
}

.reporter-panel textarea {
  min-height: 138px;
  resize: vertical;
}

.login-panel button,
.reporter-panel button,
.newsroom-user button,
.approval-actions button,
.admin-room-top button {
  min-height: 40px;
  color: #fff;
  background: #9f1d00;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.login-panel p {
  margin: 0;
  color: #655d55;
}

.newsroom-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.newsroom-user strong {
  color: #741800;
  font-size: 1.2rem;
}

.newsroom-user span {
  color: #655d55;
  font-weight: 900;
}

.newsroom-user a {
  min-height: 38px;
  display: grid;
  place-items: center;
  color: #741800;
  background: #ffdf9b;
  text-decoration: none;
  font-weight: 950;
}

.admin-panel-room,
.live-approved-panel {
  min-height: 420px;
}

.admin-room-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.approval-list {
  display: grid;
  gap: 10px;
}

.approval-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border-left: 5px solid #d94a00;
}

.approval-card.approved {
  border-left-color: #157a34;
}

.approval-card.rejected {
  border-left-color: #555;
  opacity: 0.72;
}

.approval-card span {
  width: fit-content;
  padding: 3px 8px;
  color: #fff;
  background: #9f1d00;
  font-size: 0.72rem;
  font-weight: 1000;
}

.approval-card.approved span {
  background: #157a34;
}

.approval-card.rejected span {
  background: #555;
}

.approval-card strong {
  color: #741800;
  line-height: 1.25;
}

.approval-card p {
  margin: 0;
  color: #312a24;
  line-height: 1.45;
}

.approval-card small {
  color: #655d55;
  font-weight: 850;
}

.approval-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 7px;
  align-items: center;
}

.empty-list {
  margin: 0;
  color: #655d55;
  font-weight: 900;
}

.live-badge {
  display: inline-block;
  padding: 5px 10px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

.live-ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 16px 0;
  background: #202020;
  color: #fff;
}

.live-ticker strong {
  padding: 10px 14px;
  background: var(--red);
}

.live-ticker p {
  margin: 0;
  padding: 10px 14px;
  font-weight: 900;
}

.live-features {
  margin-top: 16px;
}

.maha-live-desk {
  margin: 16px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.maha-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.maha-live-card {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.maha-live-card.active {
  border-color: var(--red);
  box-shadow: inset 4px 0 0 var(--red);
}

.maha-live-card span {
  color: var(--red);
  font-weight: 950;
}

.maha-live-card h3 {
  margin: 8px 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.maha-live-card p {
  margin: 0;
  color: var(--muted);
}

.epaper-viewer {
  order: 1;
  margin: 14px 0 26px;
  padding: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(244, 122, 0, 0.2), transparent 34%),
    radial-gradient(circle at 82% 6%, rgba(102, 20, 0, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 245, 223, 0.98), rgba(255, 228, 173, 0.82));
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.epaper-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 0;
  background:
    radial-gradient(circle at center top, rgba(255, 255, 255, 0.78), transparent 48%),
    linear-gradient(180deg, #fff8e9 0, #ffe4ad 56%, #dca15f 100%);
  border-bottom: 6px solid var(--ink);
}

.epaper-toolbar p {
  margin: 0 0 4px;
  color: var(--red);
  font-weight: 950;
}

.epaper-toolbar h2 {
  margin: 0;
  color: var(--maroon);
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1;
}

.toolbar-edition-name {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 9px;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--maroon);
  border-radius: 2px;
  font-weight: 900;
}

.toolbar-time {
  display: inline-block;
  margin-top: 8px;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.toolbar-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-controls label {
  display: grid;
  gap: 5px;
  color: var(--maroon);
  font-size: 0.84rem;
  font-weight: 900;
}

.toolbar-controls select,
.toolbar-controls input,
.toolbar-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff8ec;
  color: var(--ink);
  font-weight: 900;
  padding: 0 10px;
}

.toolbar-controls button {
  color: #fff;
  background: var(--maroon);
}

.epaper-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  min-height: 720px;
}

.page-thumbs {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 14px;
  background:
    linear-gradient(rgba(255, 228, 173, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #21160f, #15110e);
  background-size: 100% 28px;
  border-right: 1px solid var(--maroon);
}

.page-thumbs button {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  border: 1px solid rgba(255, 228, 173, 0.35);
  border-radius: 2px;
  background: rgba(255, 245, 223, 0.06);
  color: #eee5d7;
  text-align: left;
  font-weight: 900;
}

.page-thumbs button span {
  grid-row: 1 / 3;
}

.page-thumbs button small {
  color: #a99d90;
  font-size: 0.74rem;
  font-weight: 800;
}

.page-thumbs button.active {
  background: linear-gradient(180deg, #fff8ec, var(--cream));
  color: var(--maroon);
  border-color: var(--saffron);
  box-shadow: inset 4px 0 0 var(--deep-saffron);
}

.page-thumbs span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  background: #3a3a3a;
  color: #fff;
  border-radius: 3px;
}

.page-thumbs button.active span {
  background: var(--deep-saffron);
}

.paper-preview {
  width: min(800px, calc(100% - 44px));
  min-height: 1020px;
  justify-self: center;
  margin: 28px 22px 38px;
  padding: 24px;
  color: var(--ink);
  background:
    linear-gradient(rgba(102, 20, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 20, 0, 0.018) 1px, transparent 1px),
    #fff8ec;
  background-size: 100% 26px;
  border: 1px solid var(--line);
  box-shadow:
    0 28px 74px rgba(37, 25, 14, 0.3),
    inset 0 0 0 8px rgba(255, 228, 173, 0.32);
}

.reader-page-tools {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: -8px -8px 16px;
  padding: 8px 10px;
  color: #59483b;
  background: linear-gradient(180deg, #fff5df, #ffe4ad);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 900;
}

.reader-page-tools span:last-child {
  text-align: right;
}

.paper-preview-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 6px 0 12px;
  border-bottom: 6px double var(--maroon);
  color: var(--maroon);
  font-weight: 900;
}

.paper-brand-title {
  display: grid;
  justify-items: center;
  color: var(--red);
  font-family: "Kohinoor Devanagari", "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;
  font-weight: 1000;
  gap: 4px;
}

.paper-brand-title span {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  padding: 1px 9px 0;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: clamp(0.7rem, 1.15vw, 0.9rem);
  line-height: 1;
  -webkit-text-stroke: 0;
}

.paper-brand-title em {
  color: var(--red);
  font-style: normal;
  font-size: clamp(2.5rem, 5.5vw, 4.55rem);
  line-height: 0.9;
  font-weight: 1000;
  -webkit-text-stroke: 1.3px var(--red);
  text-shadow:
    0 1px 0 #fff,
    0 3px 0 rgba(102, 20, 0, 0.13);
}

.paper-brand-title small {
  margin-top: 4px;
  color: var(--maroon);
  font-size: clamp(0.68rem, 1.2vw, 0.92rem);
  line-height: 1;
  font-weight: 1000;
}

.paper-preview-head span:last-child {
  text-align: right;
}

.print-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 12px;
  padding-top: 14px;
}

.print-lead,
.print-column,
.print-ad {
  border: 1px solid var(--line);
  background: var(--soft);
}

.print-lead {
  min-height: 260px;
  padding: 18px;
}

.print-lead span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

.print-lead h3 {
  margin: 0 0 10px;
  color: var(--maroon);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  line-height: 1.05;
}

.print-lead p,
.print-column p {
  color: var(--muted);
  font-weight: 800;
}

.print-column {
  padding: 14px;
}

.print-column h4 {
  margin: 0 0 8px;
  color: var(--maroon);
  font-size: 1.25rem;
}

.print-column p {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid #d65a00;
}

.print-ad {
  grid-column: 1 / -1;
  min-height: 70px;
  display: grid;
  place-items: center;
  color: var(--maroon);
  font-weight: 950;
  background: repeating-linear-gradient(135deg, #fff1d2 0 12px, #f4dfbd 12px 24px);
}

.front-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  grid-template-areas:
    "lead rail"
    "lead epaper";
  gap: 16px;
}

.lead-story,
.headline-rail,
.epaper-card,
.edition-band,
.ai-panel,
.reader-box,
.news-card {
  background: #fff3d7;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.lead-story {
  grid-area: lead;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 480px;
  overflow: hidden;
}

.lead-image {
  position: relative;
  min-height: 320px;
}

.lead-image img,
.news-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lead-image span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

.lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 48px);
}

.kicker,
.section-heading p,
.tag {
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 950;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 3.4rem);
  line-height: 1.18;
  font-weight: 850;
}

.lead-copy > p:not(.kicker) {
  color: var(--muted);
  font-size: 1rem;
}

.headline-rail {
  grid-area: rail;
  padding: 18px;
}

.headline-rail h2,
.epaper-card strong {
  margin: 0 0 12px;
  color: var(--maroon);
  font-size: 1.45rem;
}

.headline-rail a {
  display: block;
  padding: 11px 0;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-weight: 850;
  text-decoration: none;
}

.epaper-card {
  grid-area: epaper;
  padding: 18px;
  background: linear-gradient(135deg, var(--cream), #fff);
}

.epaper-card span {
  color: var(--red);
  font-weight: 950;
}

.epaper-card strong {
  display: block;
  font-size: 2rem;
}

.epaper-card p {
  color: var(--muted);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  line-height: 1.24;
}

.edition-band {
  padding: 22px;
  margin: 24px 0;
  color: var(--ink);
  background: var(--surface);
}

.edition-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}

.edition-feature,
.edition-block {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--cream);
}

.edition-feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.edition-feature span,
.edition-feature p,
.edition-block h3 {
  font-weight: 950;
}

.edition-feature strong {
  margin: 10px 0;
  color: var(--deep-saffron);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.95;
}

.edition-block {
  padding: 16px;
}

.edition-block.metro {
  grid-column: 1 / -1;
}

.edition-block h3 {
  margin: 0 0 12px;
}

.edition-grid,
.metro-list {
  display: grid;
  gap: 7px;
}

.edition-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metro-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.edition-grid button,
.metro-list button {
  min-height: 38px;
  padding: 7px 8px;
  color: var(--maroon);
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 900;
}

.edition-grid button.selected,
.metro-list button.selected {
  color: #fff;
  background: var(--maroon);
  outline: 2px solid #fff8ed;
}

.edition-switcher {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.epaper-editions {
  margin-top: 16px;
  padding: 16px;
  background: #222;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
}

.epaper-editions .section-heading p,
.epaper-editions .section-heading h2 {
  color: #fff4dc;
}

.epaper-editions .edition-switcher a {
  background: #fff4dc;
}

.edition-switcher a {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 7px 9px;
  color: var(--maroon);
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.edition-switcher a.active {
  color: #fff;
  background: var(--maroon);
}

.home-link {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  color: #fff;
  background: var(--maroon);
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
}

.edition-hero {
  order: 2;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  margin: 0 0 20px;
  padding: 18px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.edition-hero h1 {
  color: var(--maroon);
  max-width: 820px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.edition-hero p:not(.kicker) {
  max-width: 740px;
  color: var(--muted);
  font-size: 1rem;
}

.edition-summary {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
  color: var(--maroon);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-weight: 900;
}

.edition-front {
  margin-bottom: 24px;
}

.print-edition {
  order: 3;
  margin-bottom: 24px;
  padding: 18px;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 24px 44px rgba(38, 28, 18, 0.14);
}

.print-edition-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 4px double var(--ink);
  color: var(--ink);
  font-weight: 900;
}

.print-edition-bar strong {
  color: var(--red);
  font-size: 1.1rem;
}

.print-edition-bar span:last-child {
  text-align: right;
}

.print-news-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.72fr 0.7fr;
  gap: 0;
  border-left: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  margin-top: 14px;
}

.print-main-story,
.print-side-news,
.print-photo-box,
.print-briefs,
.print-classified {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: #fffdf8;
}

.print-main-story {
  grid-row: span 2;
  padding: 18px;
}

.print-main-story h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  line-height: 1.02;
}

.print-main-story p:not(.kicker),
.print-briefs p,
.print-side-news a {
  color: #312a24;
}

.print-side-news {
  padding: 14px;
}

.print-side-news h2,
.print-briefs h3 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 1.25rem;
}

.print-side-news a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 900;
  text-decoration: none;
}

.print-photo-box {
  position: relative;
  min-height: 220px;
}

.print-photo-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
}

.print-photo-box span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

.print-briefs {
  padding: 14px;
}

.print-briefs p {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-weight: 750;
}

.print-classified {
  grid-column: 2 / 4;
  min-height: 76px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: repeating-linear-gradient(135deg, #fffdf8 0 12px, #f4ead8 12px 24px);
  font-weight: 950;
}

.auto-news-panel {
  order: 4;
  margin-bottom: 24px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

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

.auto-news-card {
  min-height: 100%;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.auto-news-card span {
  color: var(--red);
  font-weight: 950;
}

.auto-news-card h3 {
  margin: 8px 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.auto-news-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.auto-news-card small {
  color: var(--muted);
  font-weight: 850;
}

.epaper-editions .section-heading {
  align-items: start;
  display: block;
}

.epaper-editions .section-heading h2 {
  margin-top: 2px;
}

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

.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  color: var(--maroon);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-weight: 950;
}

.category-tabs button.active {
  color: #fff;
  background: var(--maroon);
}

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

.news-card {
  overflow: hidden;
  background: linear-gradient(180deg, #fff8ec, #ffe8bd);
}

.news-card.is-hidden {
  display: none;
}

.news-card img {
  height: 160px;
}

.news-card .tag,
.news-card h3,
.news-card p {
  margin-left: 14px;
  margin-right: 14px;
}

.news-card .tag {
  display: inline-block;
  margin-top: 14px;
}

.news-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.45;
}

.news-card p {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--muted);
}

.desk-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  padding-bottom: 36px;
}

.ai-panel,
.reader-box {
  padding: 20px;
}

.section-heading.compact {
  display: block;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.signal-grid div {
  padding: 14px;
  background: var(--cream);
  border-radius: 2px;
}

.signal-grid strong {
  display: block;
  color: var(--maroon);
  font-size: 1.55rem;
}

.signal-grid span,
.reader-box,
.brief-form label {
  color: var(--muted);
}

.brief-form label,
.reader-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.input-row input,
.reader-box select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 12px;
  background: #fff;
}

.input-row button {
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--maroon);
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.reader-box h2 {
  margin-top: 0;
  color: var(--maroon);
}

.reader-box select {
  margin-bottom: 14px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--deep-saffron);
}

.full {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 34px;
  color: var(--muted);
  border-top: 3px solid var(--maroon);
}

.footer strong {
  color: var(--maroon);
}

@media (max-width: 980px) {
  .masthead,
  .front-grid,
  .lead-story,
  .print-news-grid,
  .network-hero,
  .writer-grid,
  .admin-writer-grid,
  .citizen-reporter,
  .admin-shell,
  .live-control-grid,
  .live-stage,
  .live-header,
  .encoder-header,
  .encoder-layout,
  .article-shell,
  .edition-layout,
  .desk-grid {
    grid-template-columns: 1fr;
  }

  .epaper-layout {
    grid-template-columns: 1fr;
  }

  .page-thumbs {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
    border-right: 0;
    border-bottom: 4px solid var(--ink);
  }

  .paper-preview {
    width: min(800px, calc(100% - 24px));
    margin: 18px auto 28px;
  }

  .front-grid {
    grid-template-areas: "lead" "rail" "epaper";
  }

  .print-main-story,
  .print-classified {
    grid-column: auto;
    grid-row: auto;
  }

  .masthead {
    min-height: 0;
    gap: 12px;
    padding: 16px 12px;
  }

  .masthead-tools,
  .epaper-btn {
    justify-self: center;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auto-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .admin-cards,
  .maha-live-grid,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edition-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .edition-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metro-list,
  .signal-grid,
  .platform-grid,
  .relay-panel,
  .publish-url-grid,
  .server-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .paper-top,
  .article-topbar,
  .epaper-toolbar,
  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-title span {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    margin-bottom: 0;
  }

  .brand-title em {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
    line-height: 1;
    -webkit-text-stroke: 0.8px var(--red);
  }

  .ticker,
  .article-paper-head,
  .paper-preview-head,
  .reader-page-tools,
  .print-edition-bar,
  .print-grid,
  .edition-hero,
  .input-row,
  .news-grid,
  .auto-news-grid,
  .feature-grid,
  .admin-cards,
  .maha-live-grid,
  .flow-steps,
  .edition-grid,
  .edition-switcher,
  .metro-list,
  .signal-grid,
  .encoder-action-grid,
  .browser-push-actions,
  .platform-grid,
  .relay-panel,
  .publish-url-grid,
  .server-setup-grid,
  .encoder-status-strip {
    grid-template-columns: 1fr;
  }

  .ticker p {
    padding: 0 12px 10px;
    white-space: normal;
  }

  .paper-preview-head span:last-child {
    text-align: left;
  }

  .paper-brand-title em {
    font-size: clamp(2.4rem, 16vw, 4rem);
  }

  .article-paper-head span:last-child {
    text-align: left;
  }

  .article-body {
    columns: 1;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }
}
