/* ── Match list (full page) ──────────────────────────────────────────────── */
.matches {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.active-filters-label,
.browse-tags-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.browse-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.tag-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tag-remove {
  margin-left: 0.25rem;
  color: inherit;
  text-decoration: none;
  opacity: 0.75;

  &:hover {
    opacity: 1;
  }
}

.browse-tags-select {
  font-size: 0.875rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;

  &:hover, &:focus {
    border-color: var(--primary);
    color: var(--text);
    outline: none;
  }
}

/* ── VOD list ────────────────────────────────────────────────────────────── */
#vod-list {
  margin-top: 1rem;

  & > p {
    color: var(--text-muted);
    font-style: italic;
  }

  & ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
  }
}

/* ── VOD card ────────────────────────────────────────────────────────────── */
.vod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;

  &:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }

  & h2 {
    margin: 0 0 .375rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);

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

      &:hover {
        color: var(--primary);
      }
    }
  }

  & p {
    margin: 0 0 .875rem;
    color: var(--text-muted);
    font-size: .9375rem;
  }
}

/* ── VOD detail page ─────────────────────────────────────────────────────── */
.vod-embed-wrapper {
  margin: 1.5rem 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;

  & iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }
}

.vod-watch-link {
  margin: 1.5rem 0;

  & a {
    color: var(--primary);
    font-weight: 500;

    &:hover {
      color: var(--primary-hover);
    }
  }
}

.vod-description {
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: .9375rem;
  line-height: 1.7;
}

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;

  &:hover {
    color: var(--primary-hover);
    text-decoration: underline;
  }
}

/* ── Channel info ────────────────────────────────────────────────────────── */
.channel-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.channel-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  flex-shrink: 0;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0.625rem;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.channel-link:hover {
  background: color-mix(in srgb, var(--primary) 20%, transparent);
}

.channel-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Match players ───────────────────────────────────────────────────────── */
.match-players {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.match-player {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text);
}

.player-tag {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.match-vs {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-style: italic;
  padding: 0 0.125rem;
}

/* ── Match tag chips ─────────────────────────────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.1875rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
}

/* ── Match timestamp (seeks the embedded video) ─────────────────────────── */
.match-time {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;

  &:hover {
    color: var(--primary-hover);
  }
}
