/* Content navigation only. Never select external links or ad controls. */
:is(
  :where(section, main) a:is([href="/news"], [href="/news/daily"], [href="/schedule"], [href="/matches"], [href="/videos"], [href="/insights"], [href="/analysis"]):not(:has(img, button, h1, h2, h3)):not(header a, nav a, footer a, .meta a, .chips a, .sources a),
  :where(section, main) a:is([href="/news"], [href="/news/daily"], [href="/schedule"], [href="/videos"]) > button,
  button[data-loc="client/src/components/HeroSection.tsx:134"],
  button[data-loc="client/src/components/ScheduleSection.tsx:275"],
  button[data-loc="client/src/components/VideoSection.tsx:289"]
):not(a[href^="http"] *) {
  --sport-content-action: button;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 0.6rem;
  min-height: 44px;
  max-width: 100%;
  height: auto;
  padding: 10px 18px;
  border: 2px solid #2c7ee9;
  border-radius: 10px;
  background: #155ec5;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  box-shadow: 0 3px 0 #062951;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;

  &:focus-visible {
    outline: 3px solid #f7c945;
    outline-offset: 4px;
  }

  & svg {
    flex-shrink: 0;
    transition: transform 160ms ease;
  }

  @media (hover: hover) and (pointer: fine) {
    &:hover {
      background: #0b4c9f;
      transform: translateY(-2px);
      box-shadow: 0 5px 0 #062951, 0 8px 18px #061b3533;
    }

    &:hover svg:is([class*="arrow"], [class*="chevron"]) {
      transform: translateX(3px);
    }
  }

  &:active {
    background: #093e83;
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 1px 0 #062951;
  }

  @media (prefers-reduced-motion: reduce) {
    &, & svg {
      transition: none !important;
      transform: none !important;
      animation: none !important;
    }
  }
}

/* Existing full-card and headline links keep their destinations and text. */
:is(
  [data-sport-current] a[href^="/news/daily-"],
  #news a[href^="/news/daily-"],
  .cards .card h2 > a[href^="/news/daily-"]
) {
  --sport-content-action: article;
  display: block;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;

  &::after {
    content: "閱讀完整報導 →";
    display: table;
    margin: 12px 16px 16px;
    padding: 10px 14px;
    min-height: 44px;
    border-radius: 8px;
    background: #155ec5;
    color: #fff;
    font: 750 14px/1.5 -apple-system, BlinkMacSystemFont, "Noto Sans TC", sans-serif;
    box-sizing: border-box;
  }

  &:focus-visible {
    outline: 3px solid #f7c945;
    outline-offset: 4px;
  }

  @media (hover: hover) and (pointer: fine) {
    &:hover {
      opacity: 1;
      transform: translateY(-2px);
      box-shadow: 0 0 0 2px #2c7ee9;
    }
    &:hover::after { background: #0b4c9f; }
  }

  &:active { transform: translateY(1px) scale(0.99); }

  @media (prefers-reduced-motion: reduce) {
    & { transition: none !important; transform: none !important; }
  }
}

.cards .card h2 > a[href^="/news/daily-"]::after { margin-left: 0; }
