:root {
  --news-bg-base-image: url('../img/bg10.gif');
  --news-bg-row-image: url('../img/bg09.gif');
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  background-color: #020202;
  color: #fefefe;
}

#news-bg-base,
#news-bg-rows,
#news-bg-columns,
#news-bg-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#news-bg-base {
  z-index: 0;
  background-color: #020202;
  background-image: var(--news-bg-base-image);
  background-repeat: repeat;
  background-size: 320px auto;
  background-position: 0 0;
}

#news-bg-rows {
  z-index: 1;
  overflow: hidden;
}

#news-bg-columns {
  z-index: 2;
  overflow: hidden;
}

#news-bg-lines {
  z-index: 3;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.news-bg-row {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--row-height, 32px);
  background-image: var(--news-bg-row-image);
  background-repeat: repeat;
  background-size: 320px auto;
  opacity: 0;
  transition: opacity 140ms ease-in-out, transform 220ms ease-in-out;
  will-change: opacity, transform;
}

.news-bg-row.is-active {
  opacity: 0.92;
  transform: scaleY(1.02);
}

.news-bg-column {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--column-width, 30px);
  background-color: rgba(255, 255, 255, 0.85);
  background-image: var(--news-bg-base-image);
  background-size: 320px auto;
  background-position: 0 0;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 120ms ease-in-out, transform 150ms ease-in-out;
  will-change: opacity, transform;
}

.news-bg-column.is-active {
  opacity: 0.95;
  transform: scaleX(1.03);
}

body > div:last-of-type {
  position: relative;
  z-index: 4;
}

.flex-container,
.flex-center {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.flex-grow {
  flex: 1 1 auto;
  min-width: 0;
}

.news-table {
  width: min(100%, 1100px);
  margin: 0 auto;
  border-collapse: collapse;
  border: 5px solid #000;
  background-color: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(4px);
  table-layout: fixed;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.45);
}

.news-table th,
.news-table td {
  border: 1px solid #000;
  padding: 10px;
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.4;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  background-color: rgba(255, 255, 255, 0.92);
  color: #000;
}

.news-table th {
  background-color: rgba(30, 30, 30, 0.9);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  mix-blend-mode: screen;
}

.news-table th:first-child,
.news-table td:first-child {
  width: 110px;
  min-width: 100px;
  max-width: 150px;
  white-space: nowrap;
  padding-left: 6px;
  padding-right: 6px;
}

.news-date-cell {
  padding: 0;
  text-align: center;
}

.news-date-text {
  margin: 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
  white-space: pre-line;
}

.news-table th:first-child {
  margin: 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.news-note-cell {
  position: relative;
  padding-bottom: 12px;
  padding-top: 34px;
}

.news-mobile-date {
  display: none;
}

.news-pill-group {
  position: absolute;
  top: 6px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 16px);
}

.news-source-pill,
.news-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.62em;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-source-pill {
  background-color: rgba(0, 0, 0, 0.62);
}

.news-source-pill-manual {
  background-color: rgba(10, 70, 126, 0.82);
}

.news-source-pill-automated {
  background-color: rgba(16, 108, 52, 0.82);
}

.news-category-pill {
  background-color: rgba(124, 16, 16, 0.78);
}

.news-table img,
.news-table iframe {
  display: block;
  width: 100%;
  max-width: 300px;
  margin-top: 10px;
  height: auto;
}

.news-table img[src^='../assets/'] {
  max-width: 100%;
}

.news-table img[src^='http'],
.news-table img[src*='//'],
.news-table iframe[src^='http'],
.news-table iframe[src*='//'] {
  max-width: 300px;
}

.news-table iframe {
  aspect-ratio: 16 / 9;
  border: 0;
}

.news-art {
  width: 100%;
  max-width: min(100%, 780px);
  height: auto;
}

.sitting {
  width: 80px;
  height: auto;
}

@media screen and (max-width: 900px) {
  .flex-container,
  .flex-center {
    gap: 10px;
  }

  .news-table {
    width: 100%;
  }

  .news-bg-row {
    height: var(--row-height-mobile, 24px);
  }

  .news-bg-column {
    width: var(--column-width-mobile, 20px);
  }
}

@media screen and (max-width: 768px) {
  .flex-container,
  .flex-center {
    display: block;
  }

  .sitting {
    display: none;
  }

  .news-table,
  .news-table thead,
  .news-table tbody,
  .news-table tr,
  .news-table th,
  .news-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .news-table thead {
    display: none;
  }

  .news-table tr {
    border-bottom: 3px solid #000;
  }

  .news-table td:first-child {
    width: 100%;
    white-space: normal;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
    text-align: left;
  }

  .news-date-cell {
    display: none;
  }

  .news-mobile-date {
    display: block;
    margin: 0 0 10px;
    padding: 8px 10px;
    border: 1px solid #000;
    background: rgba(0, 0, 0, 0.08);
    color: #000;
    text-align: center;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.16em;
    white-space: pre-line;
  }

  .news-table td + td {
    border-top: 0;
  }

  .news-pill-group {
    left: 8px;
    right: 8px;
    justify-content: flex-start;
  }

  .news-table img,
  .news-table iframe {
    max-width: 100%;
  }
}



