.page-news {
  --news-card-shadow: 0 8px 24px rgba(17, 21, 26, 0.08);
  --news-card-shadow-hover: 0 14px 32px rgba(17, 21, 26, 0.12);
}

/* Hero */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  background: var(--night-blue);
  color: var(--fog-white);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0%, transparent 42%, rgba(0, 166, 81, 0.18) 42%, rgba(0, 166, 81, 0.18) 50%, transparent 50%, transparent 100%),
    linear-gradient(45deg, transparent 0%, transparent 58%, rgba(228, 0, 43, 0.14) 58%, rgba(228, 0, 43, 0.14) 66%, transparent 66%, transparent 100%);
  pointer-events: none;
}

.page-news .news-hero .container {
  position: relative;
  z-index: 1;
}

.page-news .news-hero-layout {
  display: grid;
  gap: 32px;
  padding: 32px 0 40px;
}

.page-news .news-hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 8px 0 16px;
}

.page-news .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-news .hero-version-card {
  background: linear-gradient(145deg, rgba(0, 166, 81, 0.14), rgba(26, 42, 58, 0.92));
  border: 2px solid rgba(176, 184, 192, 0.38);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.page-news .hero-version-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-green), var(--passion-red));
}

.page-news .version-current-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.7);
  margin-bottom: 8px;
}

.page-news .version-current-number {
  display: block;
  font-family: var(--font-data);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--fog-white);
}

.page-news .version-current-tag {
  display: inline-block;
  margin-top: 12px;
  background: rgba(228, 0, 43, 0.16);
  border: 1px solid rgba(228, 0, 43, 0.5);
  color: #ff9dab;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
}

.page-news .hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(176, 184, 192, 0.22);
}

.page-news .hero-stat .stat-value {
  font-size: 28px;
  display: block;
  color: var(--fog-white);
}

.page-news .hero-stat small {
  display: block;
  margin-top: 4px;
  color: rgba(245, 247, 250, 0.68);
  font-size: 13px;
  line-height: 1.4;
}

/* Version ticker */
.page-news .version-ticker {
  background: var(--night-blue);
  border-top: 1px solid rgba(176, 184, 192, 0.18);
  border-bottom: 2px solid var(--primary-green);
}

.page-news .ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.page-news .ticker-label {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--primary-green);
  background: rgba(0, 166, 81, 0.12);
  padding: 6px 10px;
  border-radius: 4px;
}

.page-news .ticker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-news .ticker-list::-webkit-scrollbar {
  display: none;
}

.page-news .ticker-link {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(245, 247, 250, 0.06);
  border: 1px solid rgba(176, 184, 192, 0.2);
  color: var(--fog-white);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-news .ticker-link:hover {
  background: rgba(0, 166, 81, 0.14);
  border-color: rgba(0, 166, 81, 0.45);
}

.page-news .ticker-version {
  font-size: 14px;
  color: var(--passion-red);
  font-weight: 700;
}

.page-news .ticker-text {
  font-size: 14px;
}

/* News stream */
.page-news .news-stream {
  background: var(--fog-white);
  padding: 64px 0;
}

.page-news .stream-head {
  margin-bottom: 32px;
}

.page-news .stream-heading h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 8px 0 0;
}

.page-news .stream-body {
  display: grid;
  gap: 28px;
}

.page-news .news-filter {
  min-width: 0;
}

/* Category pills */
.page-news .category-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.page-news .category-pills::-webkit-scrollbar {
  display: none;
}

.page-news .pill {
  flex: 0 0 auto;
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--night-blue);
  background: #fff;
  border: var(--line-width) solid var(--silver-line);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.page-news .pill:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.page-news .pill.is-active {
  background: var(--passion-red);
  border-color: var(--passion-red);
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  box-shadow: 0 4px 14px rgba(228, 0, 43, 0.28);
}

/* News list */
.page-news .news-list {
  display: grid;
  gap: 24px;
  min-width: 0;
}

/* Feature card */
.page-news .news-feature {
  border: var(--line-width) solid var(--silver-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-news .news-feature:hover {
  border-color: var(--passion-red);
  box-shadow: var(--news-card-shadow-hover);
}

.page-news .feature-media {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--ash-gray);
}

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

.page-news .feature-body {
  padding: 20px 20px 24px;
}

.page-news .feature-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.page-news .feature-body h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.page-news .feature-body > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-black);
  margin: 0 0 12px;
}

/* Sub cards */
.page-news .news-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.page-news .news-sub-card {
  border: var(--line-width) solid var(--silver-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-news .news-sub-card:hover {
  border-color: var(--passion-red);
  box-shadow: var(--news-card-shadow);
}

.page-news .sub-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ash-gray);
}

.page-news .sub-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.page-news .news-sub-card:hover .sub-media img {
  transform: scale(1.03);
}

.page-news .sub-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-news .sub-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-news .sub-body h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}

.page-news .sub-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-black);
  margin: 0;
}

.page-news .post-author {
  font-size: 12px;
  color: var(--silver-line);
  font-family: var(--font-body);
}

/* Announcement strip */
.page-news .announcement-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  border: var(--line-width) solid var(--silver-line);
  border-left: 4px solid var(--passion-red);
  border-radius: var(--radius-card);
  background: #fff;
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.page-news .announcement-strip:hover {
  border-color: var(--passion-red);
}

.page-news .announcement-strip p {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-black);
}

/* Text links */
.page-news .text-link {
  color: var(--primary-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 166, 81, 0.25);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-news .text-link:hover {
  color: var(--passion-red);
  border-bottom-color: var(--passion-red);
}

/* Expand details */
.page-news .expand-detail {
  margin-top: 12px;
  margin-bottom: 12px;
}

.page-news .expand-detail summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-green);
  padding: 6px 0;
  transition: color 0.2s ease;
}

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

.page-news .expand-detail summary:hover {
  color: var(--passion-red);
}

.page-news .expand-detail summary::before {
  content: "+ ";
  font-family: var(--font-data);
}

.page-news .expand-detail[open] summary::before {
  content: "– ";
}

.page-news .expand-detail p {
  margin: 8px 0 0;
  padding: 14px;
  background: var(--fog-white);
  border-radius: 12px;
  border-left: 3px solid var(--primary-green);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-black);
}

/* Season feature */
.page-news .season-feature {
  background: var(--night-blue);
  color: var(--fog-white);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.page-news .season-feature::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 32px solid rgba(0, 166, 81, 0.08);
  pointer-events: none;
}

.page-news .season-feature .container {
  display: grid;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.page-news .season-copy {
  max-width: 720px;
}

.page-news .season-copy h2 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 8px 0 16px;
}

.page-news .season-copy p {
  color: rgba(245, 247, 250, 0.85);
  line-height: 1.75;
  margin: 0 0 16px;
}

.page-news .season-cta {
  margin-top: 20px;
}

.page-news .season-visual {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 2px solid rgba(176, 184, 192, 0.32);
  background: var(--ash-gray);
}

.page-news .season-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.page-news .season-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: rgba(17, 21, 26, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.page-news .season-stat {
  flex: 1;
  padding: 14px 12px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news .season-stat:last-child {
  border-right: 0;
}

.page-news .season-stat .stat-value {
  font-size: 24px;
  color: var(--fog-white);
  display: block;
  line-height: 1.1;
}

.page-news .season-stat small {
  color: rgba(245, 247, 250, 0.7);
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

/* Changelog */
.page-news .changelog {
  background: var(--fog-white);
  padding: 64px 0;
}

.page-news .changelog-head {
  max-width: 720px;
}

.page-news .changelog-head h2 {
  font-size: 2rem;
  margin: 8px 0 12px;
}

.page-news .changelog-head p {
  color: var(--ink-black);
  line-height: 1.7;
}

.page-news .changelog-list {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.page-news .changelog-item {
  background: #fff;
  border: var(--line-width) solid var(--silver-line);
  border-radius: var(--radius-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-news .changelog-item:hover {
  border-color: var(--primary-green);
  box-shadow: var(--news-card-shadow);
}

.page-news .changelog-item[open] {
  border-color: rgba(0, 166, 81, 0.55);
}

.page-news .changelog-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

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

.page-news .changelog-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary-green);
  transition: color 0.2s ease;
}

.page-news .changelog-item[open] summary::after {
  content: "–";
  color: var(--passion-red);
}

.page-news .changelog-version {
  background: var(--night-blue);
  color: var(--fog-white);
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.page-news .changelog-title {
  flex: 1;
  min-width: 120px;
  line-height: 1.4;
}

.page-news .changelog-detail {
  padding: 0 20px 20px;
  margin-top: -4px;
}

.page-news .changelog-detail p {
  margin: 0;
  padding: 14px 16px;
  background: var(--fog-white);
  border-radius: 12px;
  border-left: 3px solid var(--primary-green);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-black);
}

.page-news .changelog-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

/* Media queries */
@media (min-width: 768px) {
  .page-news .news-hero h1 {
    font-size: 3.2rem;
  }

  .page-news .news-sub-grid {
    gap: 24px;
  }

  .page-news .season-feature .container {
    gap: 36px;
  }

  .page-news .news-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .page-news .feature-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 360px;
  }

  .page-news .feature-body {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-news .feature-body h3 {
    font-size: 1.6rem;
  }
}

@media (min-width: 992px) {
  .page-news .news-hero-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 48px;
    padding: 56px 0 64px;
  }

  .page-news .stream-body {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .page-news .category-pills {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .page-news .season-feature .container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }

  .page-news .season-copy {
    max-width: none;
  }

  .page-news .season-visual {
    min-width: 0;
  }
}

@media (min-width: 1200px) {
  .page-news .news-stream,
  .page-news .changelog {
    padding: 88px 0;
  }

  .page-news .season-feature {
    padding: 88px 0;
  }
}

@media (max-width: 399px) {
  .page-news .news-sub-grid {
    grid-template-columns: 1fr;
  }
}
