:root {
  --news-black: #080704;
  --news-black-soft: #12100a;
  --news-gold: #d8ad45;
  --news-gold-light: #f2d27b;
  --news-gold-dark: #7c5c18;
  --news-paper: #161209;
  --news-text: #f6edcf;
  --news-muted: #bcae86;
  --news-border: rgba(216, 173, 69, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body.today-night-city-page {
  min-height: 100vh;
  margin: 0;
  color: var(--news-text);
  background:
    linear-gradient(
      rgba(216, 173, 69, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(216, 173, 69, 0.035) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 50% -10%,
      rgba(216, 173, 69, 0.17),
      transparent 42%
    ),
    var(--news-black);
  background-size:
    24px 24px,
    24px 24px,
    auto,
    auto;
  font-family:
    Georgia,
    "Times New Roman",
    "Microsoft YaHei",
    serif;
}

.today-news-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--news-border);
  background: rgba(8, 7, 4, 0.94);
  backdrop-filter: blur(12px);
}

.today-news-header-inner {
  width: min(1320px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.today-news-brand {
  color: var(--news-gold-light);
  font-family: monospace;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.today-news-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.today-news-nav a {
  color: var(--news-muted);
  font-family: monospace;
  font-size: 13px;
  text-decoration: none;
}

.today-news-nav a:hover {
  color: var(--news-gold-light);
}

.today-news-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.today-news-masthead {
  position: relative;
  padding: 24px 0 28px;
  border-top: 5px double var(--news-gold);
  border-bottom: 5px double var(--news-gold);
  text-align: center;
}

.today-news-masthead::before,
.today-news-masthead::after {
  content: "◆";
  position: absolute;
  top: 50%;
  color: var(--news-gold);
  font-size: 20px;
  transform: translateY(-50%);
}

.today-news-masthead::before {
  left: 22px;
}

.today-news-masthead::after {
  right: 22px;
}

.today-news-masthead h1 {
  margin: 0;
  color: var(--news-gold-light);
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.94;
  letter-spacing: 0.08em;
  text-shadow:
    0 2px 0 #5d4211,
    0 0 24px rgba(216, 173, 69, 0.16);
}

.today-news-edition {
  margin: 14px 0 0;
  color: var(--news-muted);
  font-family: monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.today-news-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns:
    minmax(0, 1.75fr)
    minmax(280px, 0.72fr);
  grid-template-rows:
    minmax(520px, auto)
    minmax(130px, auto);
  grid-template-areas:
    "lead gossip"
    "ticker lottery";
  gap: 18px;
}

.today-news-block {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--news-border);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025),
      transparent 40%
    ),
    var(--news-paper);
  box-shadow:
    inset 0 0 0 3px rgba(216, 173, 69, 0.05),
    0 18px 50px rgba(0, 0, 0, 0.35);
}

.today-news-block::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(216, 173, 69, 0.18);
}

.today-news-lead {
  grid-area: lead;
  min-height: 620px;
  display: grid;
  grid-template-rows: minmax(330px, 1.1fr) auto;
}

.today-news-image-frame {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-bottom: 1px solid var(--news-border);
  background: #050504;
}

.today-news-image-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter:
    saturate(0.78)
    contrast(1.08)
    sepia(0.08);
}

.today-news-image-frame::after {
  content: "TOP STORY // NIGHT CITY & WORLD";
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 6px 10px;
  border: 1px solid var(--news-gold);
  color: #0b0904;
  background: var(--news-gold-light);
  font-family: monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.today-news-lead-copy {
  position: relative;
  z-index: 1;
  padding: 28px 30px 34px;
}

.today-news-kicker {
  margin: 0 0 10px;
  color: var(--news-gold);
  font-family: monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.today-news-lead h2,
.today-news-gossip h2 {
  margin: 0;
  color: var(--news-gold-light);
  line-height: 1.12;
}

.today-news-lead h2 {
  font-size: clamp(30px, 4.8vw, 62px);
  white-space: nowrap;
}

.today-news-lead-body,
.today-news-gossip-body {
  white-space: pre-wrap;
}

.today-news-lead-body {
  margin: 20px 0 0;
  color: var(--news-text);
  font-size: 17px;
  line-height: 1.86;
  text-align: justify;
  text-indent: 2em;
}

.today-news-gossip {
  grid-area: gossip;
  min-height: 620px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

.today-news-gossip::after {
  content: "RUMOR / CELEBRITY / STREET";
  margin-top: auto;
  padding-top: 24px;
  color: var(--news-gold-dark);
  font-family: monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.today-news-gossip h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.today-news-gossip-body {
  margin: 24px 0 0;
  color: var(--news-muted);
  font-size: 16px;
  line-height: 2;
}

.today-news-ticker {
  grid-area: ticker;
  min-height: 130px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
}

.today-news-ticker-label {
  position: relative;
  z-index: 1;
  min-width: 118px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--news-black);
  background: var(--news-gold);
  font-family: monospace;
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}

.today-news-ticker-text {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 22px 28px;
  color: var(--news-gold-light);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.55;
}

.today-news-lottery {
  grid-area: lottery;
  min-height: 130px;
}

.today-news-lottery-link {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 130px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 0;
  color: var(--news-black);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.07) 0,
      rgba(0, 0, 0, 0.07) 10px,
      transparent 10px,
      transparent 20px
    ),
    var(--news-gold-light);
  font-family: monospace;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.today-news-lottery-link:hover {
  transform: scale(1.018);
  filter: brightness(1.1);
}

.today-news-updated {
  margin: 16px 0 0;
  color: var(--news-muted);
  font-family: monospace;
  font-size: 11px;
  text-align: right;
}

.today-news-admin-panel[hidden] {
  display: none !important;
}

.today-news-admin-panel {
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid var(--news-gold);
  background: rgba(13, 11, 6, 0.97);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.44);
}

.today-news-admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.today-news-admin-heading h2 {
  margin: 0;
  color: var(--news-gold-light);
  font-size: 28px;
}

.today-news-admin-status {
  margin: 7px 0 0;
  color: var(--news-muted);
  font-family: monospace;
  font-size: 12px;
}

.today-news-admin-status.is-error {
  color: #ff6b62;
}

.today-news-admin-status.is-success {
  color: #7ff2ac;
}

.today-news-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.today-news-admin-button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--news-gold);
  color: var(--news-gold-light);
  background: rgba(216, 173, 69, 0.06);
  font: inherit;
  font-family: monospace;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.today-news-admin-button:hover:not(:disabled) {
  color: var(--news-black);
  background: var(--news-gold-light);
}

.today-news-admin-button.is-danger {
  border-color: #a9352c;
  color: #ff8178;
  background: rgba(169, 53, 44, 0.08);
}

.today-news-admin-button:disabled {
  cursor: default;
  opacity: 0.5;
}

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

.today-news-admin-field {
  display: grid;
  gap: 7px;
  color: var(--news-muted);
  font-family: monospace;
  font-size: 12px;
  font-weight: 800;
}

.today-news-admin-field.is-wide {
  grid-column: 1 / -1;
}

.today-news-admin-field input,
.today-news-admin-field textarea {
  width: 100%;
  border: 1px solid rgba(216, 173, 69, 0.38);
  color: var(--news-text);
  background: #080704;
  font: inherit;
  font-family:
    system-ui,
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.65;
  outline: none;
}

.today-news-admin-field input {
  min-height: 44px;
  padding: 9px 11px;
}

.today-news-admin-field textarea {
  min-height: 126px;
  padding: 11px;
  resize: vertical;
}

.today-news-admin-field input:focus,
.today-news-admin-field textarea:focus {
  border-color: var(--news-gold-light);
  box-shadow: 0 0 0 2px rgba(216, 173, 69, 0.1);
}

.today-news-image-admin {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(216, 173, 69, 0.35);
}

.today-news-image-admin span {
  flex: 1 1 240px;
  color: var(--news-muted);
  font-family: monospace;
  font-size: 12px;
}

@media (max-width: 880px) {
  .today-news-header-inner {
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .today-news-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .today-news-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "lead"
      "gossip"
      "ticker"
      "lottery";
  }

  .today-news-lead,
  .today-news-gossip {
    min-height: 0;
  }

  .today-news-lead h2 {
    white-space: normal;
  }

  .today-news-admin-heading {
    flex-direction: column;
  }

  .today-news-admin-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .today-news-header-inner,
  .today-news-shell {
    width: calc(100% - 18px);
  }

  .today-news-shell {
    padding-top: 24px;
  }

  .today-news-masthead {
    padding: 20px 34px;
  }

  .today-news-masthead::before {
    left: 8px;
  }

  .today-news-masthead::after {
    right: 8px;
  }

  .today-news-lead-copy,
  .today-news-gossip {
    padding: 22px 18px;
  }

  .today-news-image-frame {
    min-height: 250px;
  }

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

  .today-news-ticker-label {
    min-width: 0;
    padding: 9px 14px;
    writing-mode: horizontal-tb;
  }

  .today-news-ticker-text {
    padding: 18px;
  }

  .today-news-admin-panel {
    padding: 16px;
  }

  .today-news-admin-grid {
    grid-template-columns: 1fr;
  }

  .today-news-admin-field.is-wide,
  .today-news-image-admin {
    grid-column: auto;
  }

  .today-news-admin-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .today-news-admin-button {
    width: 100%;
  }
}
