@layer components {
  /* ============================================================
     NEWS — modeled on Digg's tech feed: a numbered list on a soft
     gray canvas, no divider lines (whitespace does the separating),
     small thumbnails, sidebar content in elevated cards.
     ============================================================ */

  .news {
    background: #f3f4f6;
    padding: 3rem 1.5rem 5rem;

    [data-theme="dark"] & { background: #0f172a; }
    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) & { background: #0f172a; }
    }
  }

  .news__inner {
    max-width: 1216px;
    margin: 0 auto;
  }

  .news__masthead {
    margin-bottom: 2rem;
  }

  .news__kicker {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color, #ff2800);
  }

  .news__heading {
    margin: 0 0 1.5rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
  }

  .news__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .news-filter {
    padding: 0.4rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.15s ease, border-color 0.15s ease;

    &:hover { border-color: var(--primary-color, #ff2800); }

    [data-theme="dark"] & { border-color: #334155; }

    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) & { border-color: #334155; }
    }
  }

  .news-filter--active {
    background: var(--primary-color, #ff2800);
    border-color: var(--primary-color, #ff2800);
    color: #fff;
  }

  /* ---- Layout: feed + sidebar ---- */

  .news__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;

    @media (min-width: 1024px) {
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 5rem;
    }
  }

  .news__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    @media (min-width: 1024px) {
      position: sticky;
      top: 1.5rem;
    }
  }

  .news__empty {
    padding: 3rem 0;
    color: var(--text-color-muted, #6b7280);
  }

  /* ---- Feed: numbered rows, spacing (not lines) as separators ---- */

  .news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }

  .news-row__link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
  }

  .news-row__index {
    flex-shrink: 0;
    width: 2.25rem;
    padding-top: 0.15rem;
    font-family: var(--font-family-mono);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color-muted, #6b7280);
  }

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

  .news-row__title {
    margin: 0 0 0.3rem;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;

    .news-row__link:hover & { text-decoration: underline; }
  }

  .news-row__excerpt {
    margin: 0 0 0.4rem;
    color: var(--text-color-muted, #6b7280);
    font-size: 0.875rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .news-row__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-color-muted-light, #9ca3af);
  }

  .news-row__meta-sport {
    font-weight: 600;
    color: var(--primary-color, #ff2800);
  }

  .news-row__thumb {
    flex-shrink: 0;
    width: 6.5rem;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;

    [data-theme="dark"] & { border-color: #334155; }
    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) & { border-color: #334155; }
    }
  }

  /* ---- Sidebar cards ---- */

  .news-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);

    [data-theme="dark"] & { background: #1e293b; border-color: #334155; box-shadow: none; }
    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) & { background: #1e293b; border-color: #334155; box-shadow: none; }
    }
  }

  .news-widget__heading {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1.1rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .news-widget__heading-icon {
    color: var(--primary-color, #ff2800);
  }

  /* ---- Champions ---- */

  .champions__group + .champions__group {
    margin-top: 1.5rem;
  }

  .champions__sport {
    margin: 0 0 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-color-muted, #6b7280);
  }

  .champions__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .champions-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .champions-row__rank {
    flex-shrink: 0;
    width: 1.4rem;
    font-family: var(--font-family-mono);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-color-muted, #6b7280);
  }

  .champions-row__image {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .champions-row__name {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .champions-row__badge {
    flex-shrink: 0;
    color: var(--primary-color, #ff2800);
  }

  /* ---- Competitions ---- */

  .competitions__empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-color-muted, #6b7280);
  }

  .competitions__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .competitions-row {
    display: flex;
    gap: 0.85rem;
  }

  .competitions-row__date {
    flex-shrink: 0;
    width: 2.75rem;
    text-align: center;
    line-height: 1.1;
  }

  .competitions-row__date-day {
    display: block;
    font-family: var(--font-family-mono);
    font-size: 1.1rem;
    font-weight: 600;
  }

  .competitions-row__date-month {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-color-muted, #6b7280);
  }

  .competitions-row__body {
    min-width: 0;
  }

  .competitions-row__name {
    margin: 0 0 0.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;

    & a {
      color: inherit;
      text-decoration: none;

      &:hover { text-decoration: underline; }
    }
  }

  .competitions-row__name-icon {
    display: inline-block;
    vertical-align: -2px;
    margin-left: 0.15rem;
    color: var(--text-color-muted-light, #9ca3af);
  }

  .competitions-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-color-muted, #6b7280);
  }

  .competitions-row__sport {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color, #ff2800);
  }

  .competitions-row__location {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
  }

  /* ============================================================
     Article show page
     ============================================================ */

  .news-article {
    padding: 0 0 4rem;
  }

  .news-article__container {
    max-width: 740px;
    margin: 3rem auto;
    padding: 0 1.5rem;
  }

  .news-article__back {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary-color, #ff2800);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;

    &:hover { opacity: 0.8; }
  }

  .news-article__title {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
  }

  .news-article__date {
    margin-bottom: 1.5rem;
  }

  .news-article__image {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 2rem;
  }

  .news-article__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    line-height: 1.7;

    & ul, & ol {
      padding-left: 1.5rem;
    }

    & blockquote {
      padding-left: 1rem;
      border-left: 3px solid #e5e7eb;
      color: #6b7280;
    }

    & a {
      color: var(--primary-color, #ff2800);
    }
  }

  .news-article__draft-banner {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 600;
  }
}
