.page-news {
  --news-deep: #071F1C;
  --news-panel: #0C2B28;
  --news-raise: #113A34;
  --news-line: #24574E;
  --news-line-soft: rgba(36, 87, 78, 0.45);
  --news-gold: #FFC107;
  --news-coral: #FF7F50;
  --news-cyan: #00B4D8;
  --news-magenta: #FF69B4;
  --news-green: #00FF88;
  background: var(--news-deep);
  min-height: 100vh;
}

.page-news .section {
  background: linear-gradient(165deg, #0E3B3A 0%, #0A2E2C 55%, #071F1C 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-news .news-timeline-section {
  background: linear-gradient(200deg, #071F1C 0%, #0E3B3A 55%, #123B32 100%);
  position: relative;
}

.page-news .news-version-section {
  background: linear-gradient(180deg, #0A2E2C 0%, #0E3B3A 60%, #071F1C 100%);
}

.page-news .news-archive-section {
  background: linear-gradient(200deg, #123B32 0%, #071F1C 60%, #0A2E2C 100%);
}

.page-news .news-breadcrumb {
  margin-bottom: 24px;
}

.page-news .news-stream-chart {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 28px;
  margin: 30px 0 28px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-news .news-stream-wall {
  display: grid;
  gap: 10px;
}

.page-news .news-stream-row {
  border-radius: 20px;
  background: rgba(6, 30, 28, 0.55);
  border: 1px solid rgba(36, 87, 78, 0.4);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-news .news-stream-row:hover {
  border-color: rgba(255, 193, 7, 0.5);
}

.page-news .news-stream-row[open] {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(6, 30, 28, 0.8);
}

.page-news .news-stream-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}

.page-news .news-stream-summary::-webkit-details-marker {
  display: none;
}

.page-news .news-stream-summary:focus-visible {
  outline: 3px solid rgba(0, 180, 216, 0.6);
  outline-offset: -2px;
  border-radius: 16px;
}

.page-news .news-type {
  flex: 0 0 auto;
  font-family: var(--font-emo);
  font-size: 12px;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.page-news .news-type--add {
  color: var(--news-green);
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.page-news .news-type--tune {
  color: var(--news-gold);
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.4);
}

.page-news .news-type--fix {
  color: var(--news-magenta);
  background: rgba(255, 105, 180, 0.12);
  border: 1px solid rgba(255, 105, 180, 0.4);
}

.page-news .news-stream-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.4;
}

.page-news .news-stream-meta {
  margin-left: auto;
  font-family: var(--font-emo);
  font-size: 12px;
  color: var(--color-dim);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.page-news .news-stream-detail {
  padding: 4px 18px 18px 18px;
  color: var(--color-dim);
  font-size: 14px;
  line-height: 1.75;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  margin-top: 4px;
}

.page-news .news-stream-detail p {
  margin: 12px 0 14px;
}

.page-news .news-timeline-texture {
  position: absolute;
  right: 0;
  top: 90px;
  width: 220px;
  height: auto;
  max-width: 100%;
  opacity: 0.16;
  pointer-events: none;
  border-radius: 24px;
  z-index: 0;
}

.page-news .news-timeline-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  margin-top: 32px;
}

.page-news .news-timeline-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.page-news .news-timeline-tabs::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--news-green) 0%, var(--news-gold) 45%, var(--news-cyan) 100%);
  opacity: 0.45;
}

.page-news .news-timeline-node {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 13px 18px 13px 42px;
  color: var(--color-dim);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-news .news-timeline-node::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--news-cyan);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-news .news-timeline-node--add::before {
  background: var(--news-green);
  box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.18);
}

.page-news .news-timeline-node--tune::before {
  background: var(--news-gold);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.18);
}

.page-news .news-timeline-node--compat::before {
  background: var(--news-cyan);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.18);
}

.page-news .news-timeline-node--search::before {
  background: var(--news-magenta);
  box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.18);
}

.page-news .news-timeline-node--archive::before {
  background: var(--news-coral);
  box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.18);
}

.page-news .news-timeline-node[aria-selected="true"] {
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.4);
  color: var(--color-text);
}

.page-news .news-timeline-node[aria-selected="true"]::before {
  transform: scale(1.18);
}

.page-news .news-timeline-node:focus-visible {
  outline: 3px solid rgba(0, 180, 216, 0.6);
  outline-offset: 2px;
}

.page-news .tl-node-badge {
  display: block;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.3;
}

.page-news .tl-node-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-emo);
  font-size: 12px;
  color: var(--color-dim);
  letter-spacing: 0.04em;
}

.page-news .news-timeline-panels {
  background: rgba(5, 20, 18, 0.6);
  border: 1px solid var(--news-line-soft);
  border-radius: 28px;
  padding: 26px;
  min-height: 320px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.page-news .news-timeline-panel h3 {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 22px;
  color: var(--color-text);
  margin: 0 0 10px;
}

.page-news .news-timeline-panel p {
  color: var(--color-dim);
  line-height: 1.7;
  margin: 0 0 16px;
  font-size: 14px;
}

.page-news .news-tl-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.page-news .news-tl-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;
}

.page-news .news-tl-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--color-accent);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  top: 14px;
}

.page-news .news-version-layout {
  display: grid;
  gap: 22px;
  margin-top: 30px;
  align-items: start;
}

.page-news .news-version-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 193, 7, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.page-news .news-version-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news .news-version-table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  background: rgba(5, 20, 18, 0.55);
  border: 1px solid var(--news-line-soft);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.page-news .news-version-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-news .news-version-table th {
  font-family: var(--font-emo);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dim);
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--news-line);
  background: rgba(0, 0, 0, 0.14);
  white-space: nowrap;
}

.page-news .news-version-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  line-height: 1.55;
}

.page-news .news-version-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-news .news-version-row--latest td {
  background: rgba(255, 193, 7, 0.1);
  color: #FFFFFF;
  font-weight: 600;
}

.page-news .news-version-row--latest td:first-child {
  box-shadow: inset 3px 0 0 var(--color-accent);
}

.page-news .news-version-batch {
  font-family: var(--font-emo);
  font-size: 13px;
  color: var(--color-accent);
  white-space: nowrap;
  font-weight: 600;
}

.page-news .news-version-scope a {
  color: var(--color-dim);
  text-decoration: underline dotted;
  transition: color 0.2s ease;
}

.page-news .news-version-scope a:hover {
  color: var(--news-gold);
}

.page-news .news-archive-layout {
  display: grid;
  gap: 26px;
  margin-top: 30px;
  align-items: start;
}

.page-news .news-archive-list {
  display: grid;
  gap: 14px;
}

.page-news .news-archive-group {
  background: rgba(5, 20, 18, 0.6);
  border: 1px solid var(--news-line-soft);
  border-radius: 22px;
  padding: 0 18px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-news .news-archive-group[open] {
  border-color: rgba(255, 193, 7, 0.42);
  background: rgba(5, 20, 18, 0.78);
}

.page-news .news-archive-group summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.4;
}

.page-news .news-archive-group summary::-webkit-details-marker {
  display: none;
}

.page-news .news-archive-group summary:focus-visible {
  outline: 3px solid rgba(0, 180, 216, 0.6);
  outline-offset: 2px;
  border-radius: 12px;
}

.page-news .news-archive-group summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-emo);
  color: var(--color-accent);
  font-size: 20px;
  flex: 0 0 auto;
}

.page-news .news-archive-group[open] summary::after {
  content: "\2212";
}

.page-news .news-archive-badge {
  font-family: var(--font-emo);
  font-size: 12px;
  color: var(--color-dim);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  font-weight: 400;
}

.page-news .news-archive-log {
  list-style: none;
  margin: 0;
  padding: 0 4px 18px;
}

.page-news .news-archive-log li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  color: var(--color-dim);
  font-size: 14px;
  line-height: 1.6;
}

.page-news .news-archive-log li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--news-cyan);
  opacity: 0.8;
}

.page-news .news-archive-visual img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

@media (min-width: 880px) {
  .page-news .news-stream-detail {
    padding-left: 54px;
  }

  .page-news .news-timeline-wrap {
    grid-template-columns: 300px 1fr;
    align-items: stretch;
  }

  .page-news .news-timeline-tabs {
    gap: 10px;
  }

  .page-news .news-timeline-panels {
    min-height: 0;
  }

  .page-news .news-version-layout {
    grid-template-columns: 160px 1fr;
    gap: 28px;
  }

  .page-news .news-version-icon {
    width: 140px;
    height: 140px;
    margin-top: 42px;
    margin-left: 0;
  }

  .page-news .news-archive-layout {
    grid-template-columns: 1fr 240px;
    gap: 28px;
  }
}
