@layer components {
  [data-news-item] {
    --news-accent: #2563eb;
    --news-tint: #eff6ff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 22px !important;
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 18px rgb(15 31 61 / 4%);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  [data-news-item][data-sport='football'] { --news-accent: #167c55; --news-tint: #ecf8f1; }
  [data-news-item][data-sport='hockey'] { --news-accent: #2563b9; --news-tint: #edf4ff; }
  [data-news-item][data-sport='tennis'] { --news-accent: #ad5d30; --news-tint: #fff3e9; }
  [data-news-item][data-sport='basketball'] { --news-accent: #a86a0c; --news-tint: #fff7e3; }
  [data-news-item]::before {
    content: '';
    display: block;
    flex: 0 0 10px;
    margin: -22px -22px 20px;
    background: linear-gradient(90deg, var(--news-accent), color-mix(in srgb, var(--news-accent) 55%, white));
  }
  [data-news-item] > div:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 14px !important; }
  [data-news-item] .chip { padding: 5px 10px; border: 0; border-radius: 7px; background: var(--news-tint); color: var(--news-accent); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
  [data-news-item] time { color: #7a8799; font-size: 11px !important; }
  [data-news-item] h3 { margin: 0 0 12px !important; font-size: 18px !important; line-height: 1.4; font-weight: 800; letter-spacing: -.025em; color: #152640; }
  [data-news-item] h3 a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; }
  [data-news-item] h3 a:hover { color: var(--news-accent); }
  [data-news-item] > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 20px !important; color: #687588; font-size: 13px !important; line-height: 1.7; flex: 1; }
  [data-news-item] > a:last-child { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 14px 0 0; border-top: 1px solid #edf0f5; color: var(--news-accent); font-size: 12px !important; font-weight: 800; text-decoration: none; }
  [data-news-item] a:focus-visible { outline: 2px solid var(--news-accent); outline-offset: 4px; border-radius: 3px; }
  #sports-news-latest > .grid { gap: 24px; }
  @media (min-width: 768px) { #sports-news-latest > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
  @media (hover: hover) { [data-news-item]:hover { transform: translateY(-4px); border-color: var(--news-accent); box-shadow: 0 12px 30px rgb(15 31 61 / 10%); } }
  @media (max-width: 479px) {
    [data-news-item] { padding: 18px !important; border-radius: 16px; }
    [data-news-item]::before { margin: -18px -18px 18px; flex-basis: 10px; }
    [data-news-item] h3 { font-size: 18px !important; }
  }
  @media (prefers-reduced-motion: reduce) { [data-news-item] { transition: none; } [data-news-item]:hover { transform: none; } }
}
